From 2f590d6f5503d8612007c94acb43deff430a6a60 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 2 Jan 2025 14:21:41 +0100 Subject: [PATCH] Rename vsock config settings Let's use the same names used by systemd. --- mkosi/config.py | 3 ++- tests/test_json.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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,