diff --git a/mbusb.d/voyager.d/generic.cfg b/mbusb.d/voyager.d/generic.cfg new file mode 100644 index 00000000..420b9f33 --- /dev/null +++ b/mbusb.d/voyager.d/generic.cfg @@ -0,0 +1,26 @@ +for isofile in $isopath/Voyager-*.iso; do + if [ -e "$isofile" ]; then + regexp --set=isoname "$isopath/(.*)" "$isofile" + submenu "$isoname (loopback.cfg) ->" "$isofile" { + iso_path="$2" + export iso_path + search --set=root --file "$iso_path" + loopback loop "$iso_path" + if [ -d "(loop)/casper" ]; then + root=(loop) + configfile /boot/grub/loopback.cfg + loopback --delete loop + else + menuentry "Live system" { + linux (loop)/live/vmlinuz-4.9.0-3-amd64 boot=live findiso=$iso_path components autologin quiet splash + initrd (loop)/live/initrd.img-4.9.0-3-amd64 + } + menuentry "Live system (fail-safe mode)" { + linux (loop)/live/vmlinuz-4.9.0-3-amd64 boot=live findiso=$iso_path components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal + initrd (loop)/live/initrd.img-4.9.0-3-amd64 + } + fi + } + fi +done +