blob: 85514de2a8983a49e6c8d7df1ec6b22dbd1950c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# moves the compiled kernel into a predetermined place for grub-free booting and to avoid messing with UEFI every update
# from https://forums.gentoo.org/viewtopic-t-1128103-start-0.html
# installkernel script itself runs any executable scripts in /etc/kernel/postinst.d/* with $1 being kernel version, and $2 path to the kernel.
# taken from
# https://forums.gentoo.org/viewtopic-p-8810619.html
ver=${1}
mkdir -pv "/boot/efi/gentoo"
mv -v "/boot/config-${ver}" "/boot/efi/gentoo/config"
mv -v "/boot/vmlinuz-${ver}" "/boot/efi/gentoo/bootx64.efi"
rm -v /boot/*${ver}*
|