Compare commits

...

No commits in common. "5a1b007fd7e8ccb9c27ce226ed9ad447826451cb" and "6c588d59a2d8dcaeb2cac9fe0ff69c2987635f09" have entirely different histories.

2 changed files with 18 additions and 1 deletions

View File

@ -16,7 +16,7 @@ cd linux
make -C /usr/src/linux O=${PWD} olddefconfig
make -j$(nproc)
kver=$(make -s kernelversion)
make modules_install INSTALL_MOD_PATH=/mnt/gentoo/usr
make modules_install INSTALL_MOD_PATH=/mnt/gentoo
cd -
printf 'Installing Kernel %s ...\n' "${kver}"

17
config-grub.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
set -e
. ./config
mkdir -p /mnt/gentoo/boot/grub2
exec > /mnt/gentoo/boot/grub2/grub.cfg
echo 'probe --set fsuuid ($dev)'
kcmdline='ro root=image:rootfs.squashfs root.image.fsuuid=$fsuuid'
for kernel in /mnt/gentoo/boot/vmlinuz-*; do
kver=${kernel#/mnt/gentoo/boot/vmlinuz-}
printf 'menuentry "%s" {\n' "${kver}"
printf ' linux /%s %s\n' "${kernel##*/}" "${kcmdline}"
printf '}\n'
done