Skip to content

Commit

Permalink
Make CDROM an upper case option
Browse files Browse the repository at this point in the history
It's an abbrevation so let's make it upper case similar to TPM and
KVM.
  • Loading branch information
DaanDeMeyer committed Jan 2, 2025
1 parent 069e299 commit 5342480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3622,6 +3622,7 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple
),
ConfigSetting(
dest="cdrom",
name="CDROM",
metavar="BOOLEAN",
nargs="?",
section="Runtime",
Expand Down
2 changes: 1 addition & 1 deletion mkosi/resources/man/mkosi.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
: Configure whether to use a virtual TPM when booting a virtual machine.
Takes a boolean value or `auto`. Defaults to `auto`.

`Cdrom=`, `--cdrom=`
`CDROM=`, `--cdrom=`
: Configures whether to attach the image as a CD-ROM device when booting a
virtual machine. Takes a boolean. Defaults to `no`.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def test_config() -> None:
}
],
"BuildSourcesEphemeral": true,
"CDROM": false,
"CPUs": 2,
"CacheDirectory": "/is/this/the/cachedir",
"CacheOnly": "always",
"Cdrom": false,
"Checksum": false,
"CleanPackageMetadata": "auto",
"CleanScripts": [
Expand Down

0 comments on commit 5342480

Please sign in to comment.