Bug#744301: systemd: [PATCH] Provide a kernel-install package and enable EFI support

Martin Pitt mpitt at debian.org
Sat Jul 16 13:50:25 BST 2016


Hello Julian,

Julian Andres Klode [2014-04-12 18:45 +0200]:
> systemd ships kernel-install which can be used to install kernels
> for boot loaders conforming to the boot loader spec, such as gummiboot,
> barebox, and potentially others I am not aware of.

Thanks for this work. We have neglected it for a while and the patches
became obsolete, sorry. But Lennart pinged me about this as he is
working on some mkosi scripts and would appreciate getting sd-boot to
work on Debian.

I now have this by and large working in

  http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/log/?h=kernel-install

The branch does this:

 * Ship kernel-install (and install.d scripts, manpage) in systemd.

   Since the kernel-install scripts are so small (< 10 kB altogether)
   I think adding a new binary package for this is overkill. Fedora
   and arch just ship this in the systemd binary, and I think we want
   to do the same.

 * Add a kernel install.d script to copy the initrd. (Not sure why
   that isn't upstream, I'll ask)

 * A cheap patch to change /boot to /boot/efi. This is being fixed
   upstream in https://github.com/systemd/systemd/pull/3737 and
   there's the intention to do a corresponding auto-detection in
   bootctl, so we can lose this soon.

With that, you can now install sd-boot with:

   # kernel-install add `uname -r` /boot/vmlinuz-`uname -r`
   # bootctl install

Note that the latter will most probably fail because of
https://github.com/systemd/systemd/issues/3740 . At least it does for
my Debian testing EFI install. Just remove or rename
/boot/efi/EFI/Boot before calling bootctl to work around this.

I did *not* add a /etc/kernel/postinst.d/ hook for calling
kernel-install automatically, as this would create pointless copies of
the kernel and initrd in /boot/efi/ for every user.  I don't want to
advertise this much yet, as Debian's officially supported boot loader
is grub. But it should be good enough (once we find a fix for #3740)
for anyone who wants to play around with this and knows what they are
doing.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160716/dfbe80a9/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list