]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ony add this package for bootable images 411/head
authorfernandolobato <lobato.meeser.fernando@homtail.com>
Thu, 2 Apr 2020 00:41:32 +0000 (17:41 -0700)
committerfernandolobato <lobato.meeser.fernando@homtail.com>
Thu, 2 Apr 2020 00:41:32 +0000 (17:41 -0700)
mkosi

diff --git a/mkosi b/mkosi
index eb9e25515597c08628a00fb3f37202c933c70df7..8d77601db3862ec6e899782f4e2fc2b6d5032ab4 100755 (executable)
--- a/mkosi
+++ b/mkosi
@@ -1806,7 +1806,7 @@ def install_debian_or_ubuntu(args: CommandLineArguments,
     # Debootstrap is not smart enough to deal correctly with alternative dependencies
     # Installing libpam-systemd via debootstrap results in systemd-shim being installed
     # Therefore, prefer to install via apt from inside the container
-    extra_packages = ['dbus', 'libpam-systemd', 'binutils', 'usrmerge']
+    extra_packages = ['dbus', 'libpam-systemd', 'binutils']
 
     # Also install extra packages via the secondary APT run, because it is smarter and
     # can deal better with any conflicts
@@ -1821,7 +1821,7 @@ def install_debian_or_ubuntu(args: CommandLineArguments,
         f.write("hostonly=no")
 
     if args.bootable:
-        extra_packages += ["dracut"]
+        extra_packages += ["dracut", "usrmerge"]
         if args.distribution == Distribution.ubuntu:
             extra_packages += ["linux-generic"]
         else: