]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove unused code
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Mar 2023 16:32:55 +0000 (17:32 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Mar 2023 16:32:55 +0000 (17:32 +0100)
mkosi/__init__.py
mkosi/backend.py

index cc9916ef6846aafe1541a0e13a4f182cd5b50d5c..5281f2761a25a5eeaae98c3d8888d5f14a613ce8 100644 (file)
@@ -1913,12 +1913,6 @@ def create_parser() -> ArgumentParserMkosi:
         # arguments.
         help=argparse.SUPPRESS,
     )
-    group.add_argument(
-        "--qemu-smbios",
-        action=RepeatableSpaceDelimitedListAction,
-        default=[],
-        help="Set an SMBIOS Type 11 string when running qemu",
-    )
     group.add_argument(
         "--network-veth",     # Compatibility option
         dest="netdev",
@@ -3356,17 +3350,6 @@ def machine_name(config: MkosiConfig) -> str:
     return config.hostname or config.image_id or config.output.with_suffix("").name.partition("_")[0]
 
 
-def interface_name(config: MkosiConfig) -> str:
-    # Shorten to 12 characters so we can prefix with ve- or vt- for the netdev ifname which is limited
-    # to 15 characters.
-    return machine_name(config)[:12]
-
-
-def has_networkd_vm_vt() -> bool:
-    return any(
-        Path(path, "80-vm-vt.network").exists()
-        for path in ("/usr/lib/systemd/network", "/lib/systemd/network", "/etc/systemd/network")
-    )
 
 
 def nspawn_knows_arg(arg: str) -> bool:
index 02be103b15849fa531abd2d13c0d30cbfac555d7..dfbdef6331eb55e194b2f8df29d88aad8e7e18e9 100644 (file)
@@ -314,7 +314,6 @@ class MkosiConfig:
     qemu_mem: str
     qemu_kvm: bool
     qemu_args: Sequence[str]
-    qemu_smbios: Sequence[str]
 
     passphrase: Optional[Path]