]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop debian os-release workaround
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Apr 2023 10:04:01 +0000 (12:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Apr 2023 09:27:33 +0000 (11:27 +0200)
Current Debian stable boots fine in qemu with systemd-boot with this
workaround removed, so let's drop it.

mkosi/distributions/debian.py

index 18565fb5fef79595cced67015c25e09f4ec55177..7629767a6df6412abb446cab51bfbf00d4c8261c 100644 (file)
@@ -79,13 +79,6 @@ class DebianInstaller(DistributionInstaller):
         # Pretend we're lxc so debootstrap skips its mknod check.
         run_with_apivfs(state, cmdline, env=dict(container="lxc", DPKG_FORCE="unsafe-io"))
 
-        # systemd-boot won't boot unified kernel images generated without a BUILD_ID or VERSION_ID in
-        # /etc/os-release. Build one with the mtime of os-release if we don't find them.
-        with state.root.joinpath("etc/os-release").open("r+") as f:
-            os_release = f.read()
-            if "VERSION_ID" not in os_release and "BUILD_ID" not in os_release:
-                f.write(f"BUILD_ID=mkosi-{state.config.release}\n")
-
         install_skeleton_trees(state, False, late=True)
 
         cls.install_packages(state, ["base-passwd"])