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:
parent
fa89b28f27
commit
49d1eaaba1
14
data/multibootusb/grub/menus/backup-server-generic.cfg
Normal file
14
data/multibootusb/grub/menus/backup-server-generic.cfg
Normal 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
|
14
data/multibootusb/grub/menus/mailgateway-generic.cfg
Normal file
14
data/multibootusb/grub/menus/mailgateway-generic.cfg
Normal 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
|
14
data/multibootusb/grub/menus/proxmox-ve-generic.cfg
Normal file
14
data/multibootusb/grub/menus/proxmox-ve-generic.cfg
Normal 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
|
Loading…
Reference in New Issue
Block a user