]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure util-linux is installed in the initrd
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Jul 2023 11:30:01 +0000 (13:30 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Jul 2023 13:41:10 +0000 (15:41 +0200)
systemd on Fedora prefers to install util-linux-core instead of
util-linux which doesn't ship sulogin which makes starting
emergency.service enter an infinite loop. Let's make sure util-linux
is installed so sulogin is available in the initrd.

mkosi/__init__.py

index 3a87a84385e0ecd9c162bb5df20674e2459f6b84..8d85e713c2c05a0909f96bf3574c4e61ea4eece9 100644 (file)
@@ -880,6 +880,7 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None:
                 "--acl", yes_no(state.config.acl),
                 "--format", "cpio",
                 "--package", "systemd",
+                "--package", "util-linux",
                 *(["--package", "udev"] if not is_portage_distribution(state.config.distribution) else []),
                 "--package", "kmod",
                 *(["--package", "dmsetup"] if is_apt_distribution(state.config.distribution) else []),