Initial commit
This commit is contained in:
19
grub.cfg
Normal file
19
grub.cfg
Normal file
@@ -0,0 +1,19 @@
|
||||
# vim: set ft=sh :
|
||||
# vim: set sw=4 ts=4 sts=4 et:
|
||||
|
||||
load_env
|
||||
regexp --set 1:disk '(.*),.*' $root
|
||||
for dev in ($disk,gpt*); do
|
||||
probe --set partuuid --part-uuid $dev
|
||||
for path in $dev/boot/vmlinuz-*; do
|
||||
if [ -f $path ]; then
|
||||
regexp --set 1:kernel '.*/(vmlinuz-.*)' $path
|
||||
regexp --set 1:kver 'vmlinuz-(.*)' $kernel
|
||||
menuentry "Gentoo Linux $kver on $dev" --class gnu-linux --id "id-$partuuid-$kver" "$dev" "$kernel" $partuuid {
|
||||
set root="$2"
|
||||
linux "/boot/$3" root=PARTUUID=$4 $rootflags
|
||||
}
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user