2
0
mirror of https://github.com/mbusb/multibootusb synced 2024-10-30 21:20:16 +00:00

add support for openmediavault isos on grub2

This commit is contained in:
Luís Pedro Algarvio 2021-03-06 04:33:56 +00:00 committed by GitHub
parent fa89b28f27
commit a4335c7a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
for isofile in $isopath/openmediavault_*.iso; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$isopath/(.*)" "$isofile"
submenu "$isoname (grub.cfg) ->" "$isofile" {
iso_path="$2"
export iso_path
search --set=root --file "$iso_path"
loopback loop "$iso_path"
root=(loop)
configfile /boot/grub/grub.cfg
loopback --delete loop
}
fi
done