40 lines
1.5 KiB
INI
40 lines
1.5 KiB
INI
if cpuid -l; then
|
|
havekernel="Y"
|
|
title=""
|
|
for kopt in x86_64 $kopts @kopts@; do
|
|
if [ -n "$title" ] ; then
|
|
title="$title $kopt";
|
|
else
|
|
title="$kopt";
|
|
fi;
|
|
done
|
|
menuentry "ReadOnly: metis.x86_64 " --class=metis.x86_64 "$title @ro_opts@" {# set arguments above with the editor
|
|
linux /boot/vmlinuz-$2
|
|
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-x86_64.img
|
|
}
|
|
menuentry "From Stick/HDD: metis.x86_64 " --class=metis.x86_64 "$title @rw_opts@" {# set arguments above with the editor
|
|
linux /boot/vmlinuz-$2
|
|
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-x86_64.img
|
|
}
|
|
fi
|
|
if [ "${havekernel}" != "Y" ]; then
|
|
menuentry --class=find.none "NO SUITABLE KERNELS AVAILABLE" {echo $@ echo "There are no kernels suitable for this machine available."
|
|
echo ""
|
|
if ! cpuid -l; then
|
|
echo "This machine is NOT 64bit capable."
|
|
for kk in /boot/vmlinu*x86_64; do
|
|
if [ "$kk" != "/boot/vmlinu*x86_64" ]; then
|
|
have32="true"
|
|
fi
|
|
done
|
|
if [ "${have32}" != "true" ]; then
|
|
echo "There are no 32bit kernels available"
|
|
echo "It appears you are trying to boot a 64bit release on a 32bit machine"
|
|
echo "This cannot work!"
|
|
fi
|
|
fi
|
|
echo "Press Escape to return to the main menu"
|
|
sleep --interruptible 9999
|
|
menu_reload
|
|
}
|
|
fi
|