diff --git a/mkosi/config.py b/mkosi/config.py index 4b9cc146b..d33cc81c7 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3589,6 +3589,7 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple ), ConfigSetting( dest="vsock", + name="VSock", metavar="FEATURE", nargs="?", section="Runtime", @@ -3599,7 +3600,7 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple ), ConfigSetting( dest="vsock_cid", - name="VsockConnectionId", + name="VSockCID", long="--vsock-cid", metavar="NUMBER|auto|hash", section="Runtime", diff --git a/tests/test_json.py b/tests/test_json.py index f6a8094fd..12e9633fa 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -384,6 +384,8 @@ def test_config() -> None: "PROPERTY=VALUE" ], "UseSubvolumes": "auto", + "VSock": "enabled", + "VSockCID": -2, "Verity": "enabled", "VerityCertificate": "/path/to/cert", "VerityCertificateSource": { @@ -402,8 +404,6 @@ def test_config() -> None: "VolatilePackages": [ "abc" ], - "Vsock": "enabled", - "VsockConnectionId": -2, "WithDocs": true, "WithNetwork": false, "WithRecommends": true,