Easy way to manually add nemesis in grub2

Arch based Porteus community project
Post Reply
Scooby
Ronin
Ronin
Posts: 1
Joined: 05 Feb 2014, 09:47
Distribution: linux
Location: rainbow

Easy way to manually add nemesis in grub2

Post#1 by Scooby » 30 Jun 2016, 20:47

I want to try it but not install it.

Is there a grub2 menu-skeleton I can use.

I want to manually add it.

User avatar
Ed_P
Contributor
Contributor
Posts: 3314
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Easy way to manually add nemesis in grub2

Post#2 by Ed_P » 30 Jun 2016, 20:59

This grub2win menu item works for me.

Code: Select all

menuentry "Porteus Nemesis ISO" --class slackware   --class icon-xtra-07  {
     echo Boot disk address is: $root
     echo Prefix is:            $prefix
     echo The boot mode is:     $grub2win_bootmode

     set iso=/ISOs/porteus-nemesis-v3.5-lxde-x86_64.iso

     search -f $iso --set=root
     echo ISO root is:          $root
     echo ISO is:               $iso
     if [ -f (hd0,1)/USB_INSTALLATION.txt ]; then
         set linux_drv=/mnt/sdb1/porteus3.x
     else
         set linux_drv=/mnt/sda5/porteus3.x
     fi
     echo Porteus extramods     $linux_drv
     set porteus_parms="changes=/porteus3.x/porteussave.dat volume=33 reboot=cold"
     echo Porteus parms are:    $porteus_parms     
     echo
     loopback loop $iso
     sleep -v -i 7
     linux  (loop)/boot/syslinux/vmlinuz from=$iso $porteus_parms
     initrd (loop)/boot/syslinux/initrd.xz
}
Ed

Post Reply