From: Daan De Meyer Date: Sun, 16 Apr 2023 10:04:01 +0000 (+0200) Subject: Drop debian os-release workaround X-Git-Tag: v15~246^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ca7fca716eeef3f5b1fb510f3f4fc9c1b44723c;p=thirdparty%2Fmkosi.git Drop debian os-release workaround Current Debian stable boots fine in qemu with systemd-boot with this workaround removed, so let's drop it. --- diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index 18565fb5f..7629767a6 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -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"])