49 lines
2.1 KiB
INI
49 lines
2.1 KiB
INI
|
if cpuid -l; then
|
||
|
havekernel="Y"
|
||
|
title=""
|
||
|
for kopt in x86_64 $kopts archisobasedir=arch archisolabel=@iso_label@ @parameters@; do
|
||
|
if [ -n "$title" ] ; then
|
||
|
title="$title $kopt";
|
||
|
else
|
||
|
title="$kopt";
|
||
|
fi;
|
||
|
done
|
||
|
menuentry "From CD/DVD/ISO/Stick/HDD: arch.x86_64 CLI (default)" --class=arch.x86_64 "$title cow_spacesize=1024M autostartdesktop=cli" {# set arguments above with the editor
|
||
|
linux /boot/vmlinuz-$2
|
||
|
initrd /boot/initramfs-x86_64.img
|
||
|
}
|
||
|
menuentry "From CD/DVD/ISO/Stick/HDD: arch.x86_64 CPU SUCKS" --class=arch.x86_64 "$title cow_spacesize=1024M pci=noacpi rcu_nocbs=0-7 processor.max_cstate=1 i8042.noloop i8042.nomux i8042.nopnp i8042.reset" {# set arguments above with the editor
|
||
|
linux /boot/vmlinuz-$2
|
||
|
initrd /boot/initramfs-x86_64.img
|
||
|
}
|
||
|
menuentry "From CD/DVD/ISO/Stick/HDD COPYTORAM: arch.x86_64 " --class=arch.x86_64 "$title copytoram=y cow_spacesize=1024M" {# set arguments above with the editor
|
||
|
linux /boot/vmlinuz-$2
|
||
|
initrd /boot/initramfs-x86_64.img
|
||
|
}
|
||
|
menuentry "From CD/DVD/ISO/Stick/HDD COWDEVICE: arch.x86_64 " --class=arch.x86_64 "$title cow_label=cow_device" {# set arguments above with the editor
|
||
|
linux /boot/vmlinuz-$2
|
||
|
initrd /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
|