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

add support for proxmox isos on grub2

This commit is contained in:
Luís Pedro Algarvio 2021-03-06 03:22:25 +00:00 committed by GitHub
parent fa89b28f27
commit 49d1eaaba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,14 @@
for isofile in $isopath/proxmox-backup-server_*.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

View File

@ -0,0 +1,14 @@
for isofile in $isopath/proxmox-mailgateway_*.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

View File

@ -0,0 +1,14 @@
for isofile in $isopath/proxmox-ve_*.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