projg2 / eclean-kernel2

Reboot of eclean-kernel [now defunct in favor of reviving ek1]
BSD 2-Clause "Simplified" License
17 stars 6 forks source link

systemd-boot/gummiboot layout #5

Open devurandom opened 8 years ago

devurandom commented 8 years ago

It would be nice if the systemd-boot/gummiboot /boot layout would be supported.

Sample data:

/boot/${MACHINE_ID}/4.7.0-gentoo:
insgesamt 18M
-rwxr-xr-x 1 root root  13M 28. Jul 00:56 initrd*
-rwxr-xr-x 1 root root 5.1M 28. Jul 00:56 linux*

/boot/${MACHINE_ID}/4.7.1-gentoo:
insgesamt 17M
-rwxr-xr-x 1 root root  12M 18. Aug 18:24 initrd*
-rwxr-xr-x 1 root root 5.1M 18. Aug 18:24 linux*

/boot/loader/entries/:
insgesamt 72K
-rwxr-xr-x 1 root root 315 28. Jul 00:56 ${MACHINE_ID}-4.7.0-gentoo.conf*
-rwxr-xr-x 1 root root 315 18. Aug 18:24 ${MACHINE_ID}-4.7.1-gentoo.conf*

These kernel images were created by /etc/kernel/postinst.d/30_kernel-install:

#!/bin/sh

version="$1" ; shift
image="$1" ; shift

exec /usr/bin/kernel-install add "${version}" "${image}"

/usr/bin/kernel-install is part of sys-apps/systemd.

mgorny commented 6 years ago

Yes, this is very important feature on the TODO list.