Code: Select all
# start-grub2win-user-section ********************************************************
#
menuentry "Porteus LXQT ISO" --class slackware --class icon-porteus {
echo Boot disk address is $root
echo Prefix is $prefix
echo The boot mode is $grub2win_bootmode
set iso=/ISOs/Porteus-LXQT-v3.1-x86_64-nu.iso
search -f $iso --set=root
echo ISO root is $root
echo ISO is $iso
if [ -f (hd1,1)/USB_INSTALLATION.txt ]; then
set linux_drv=/mnt/sdb1/porteus3.1
else
set linux_drv=/mnt/sda5/porteus3.1
fi
echo Porteus extramods $linux_drv
echo
loopback loop $iso
sleep -v -i 7
echo "Loading Linux"
linux (loop)/boot/syslinux/vmlinuz from=$iso extramod="$linux_drv/Modules;$linux_drv/modsavedat" volume=33 reboot=cold
echo "Loading initrd"
initrd (loop)/boot/syslinux/initrd.xz
}
menuentry "Porteus Nemesis ISO" --class slackware --class icon-linux {
echo Boot disk address is $root
echo Prefix is $prefix
echo The boot mode is $grub2win_bootmode
set iso=/ISOs/porteus-nemesis-v3.3-x86_64.iso
search -f $iso --set=root
echo ISO root is $root
echo ISO is $iso
echo
loopback loop $iso
sleep -v -i 7
echo "Loading Linux"
linux (loop)/boot/syslinux/vmlinuz from=$iso volume=33 reboot=cold
echo "Loading initrd"
initrd (loop)/boot/syslinux/initrd.xz
}
menuentry 'Reboot' --class slackware --class icon-reboot {
reboot
}
#
# end-grub2win-user-section ********************************************************
To boot ISOs on the EFI Porteus USB drive copy the grub2 folder to the root and the /EFI/grub2win folder to the USB's /EFI/ folder and add this to the refind.conf file:
Code: Select all
menuentry Grub2 {
loader /EFI/grub2win/grub2win.boot.efi
icon /EFI/BOOT/icons/os_linux.png
}