On Thu, 30 Jun 2016 14:38:26 +0200 Michał Górny <mgo...@gentoo.org> wrote:
> So if you have some time, please reply to this thread with > a specific /boot layout that you think needs to be handled, with > as much helpful information as possible -- including possible > distinctive features and pitfalls. I use genkernel to build my kernels and initramfsen. Most of my machines don’t support EFI, so my /boot contains a bunch of {initramfs,kernel,System.map}-$KV files plus the {initramfs,kernel,System.map}.old symlinks. My GRUB2 grub.cfg points at the symlinks. Once in a while (usually when I get disk full errors on the dedicated partition) I delete the old files by hand. A couple of my machines do support EFI. On those, I set INSTALL=no in genkernel.conf. I then run a custom script afterwards which maintains directories /boot/EFI/gentoo and /boot/EFI/gentoo-old. Each of these contains a file kernel.efi and another file initramfs. This is FAT, so no symlinks. The script deletes gentoo-old, copies gentoo to gentoo-old, and finally puts the new files in gentoo. I have EFI boot records pointing to both, using initrd=\gentoo\initramfs syntax. -- Christopher Head
pgp7PeYxC9xcO.pgp
Description: OpenPGP digital signature