]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Changes to support unified kernel+initrd in Ubuntu 402/head
authorfernandolobato <felobato@google.com>
Thu, 20 Feb 2020 23:39:17 +0000 (15:39 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 17 Mar 2020 08:08:01 +0000 (01:08 -0700)
mkosi

diff --git a/mkosi b/mkosi
index f0d51204faba359e145f9a956623d122955e7ef2..4ced742d6180d4acaebb9cba60cea1e16b7e947b 100755 (executable)
--- a/mkosi
+++ b/mkosi
@@ -1802,7 +1802,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']
+    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
@@ -2864,7 +2864,7 @@ def install_unified_kernel(args: CommandLineArguments,
     if do_run_build_script:
         return
 
-    if args.distribution not in (Distribution.fedora, Distribution.mageia):
+    if args.distribution not in (Distribution.fedora, Distribution.mageia, Distribution.ubuntu, Distribution.debian):
         return
 
     with complete_step("Generating combined kernel + initrd boot file"):
@@ -2889,6 +2889,7 @@ def install_unified_kernel(args: CommandLineArguments,
                       "-v",
                       "--no-hostonly",
                       "--uefi",
+                      "--uefi-stub", "/usr/lib/systemd/boot/efi/linuxx64.efi.stub",
                       "--kver", kver.name,
                       "--kernel-cmdline", cmdline]