Please note: this is not an excuse not to have a bootable USB-stick for true emergencies. This is just for convenience.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'Parted Magic 64' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos1' insmod loopback insmod iso9660 insmod udf set isofile="/pmagic/pmagic_2015_01_13.iso" loopback loop $isofile linux (loop)/pmagic/bzImage64 iso_filename=$isofile load_ramdisk=1 initrd (loop)/pmagic/initrd.img (loop)/pmagic/fu.img (loop)/pmagic/m64.img } |
On openSUSE (13.2), this file needs to be placed into “/etc/grub.d/”. After that run “yast2 bootloader” to update GRUB2’s config file (“/boot/grub2/grub.cfg”).
The ISO-file must be on a partition / file-system that is accessible to GRUB2 during boot. In this case the file(s) are on the first partition of “hd0” (defined in “/boot/grub2/device.map”), the boot-partition (EXT4) of this system.