From b7ddf090068f49bc1b9fccdac8afb35ea56c5077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pedro=20Algarvio?= Date: Sat, 6 Mar 2021 04:43:09 +0000 Subject: [PATCH] add support for finnix isos on grub2 --- .../grub/menus/finnix.d/live-generic.cfg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 data/multibootusb/grub/menus/finnix.d/live-generic.cfg diff --git a/data/multibootusb/grub/menus/finnix.d/live-generic.cfg b/data/multibootusb/grub/menus/finnix.d/live-generic.cfg new file mode 100644 index 0000000..23f6cfd --- /dev/null +++ b/data/multibootusb/grub/menus/finnix.d/live-generic.cfg @@ -0,0 +1,14 @@ +for isofile in $isopath/finnix-*.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" + root=(loop) + configfile /boot/grub/loopback.cfg + loopback --delete loop + } + fi +done