Skip to content

Commit

Permalink
add support for debian10 live and non-live isos
Browse files Browse the repository at this point in the history
  • Loading branch information
lpalgarvio committed Mar 5, 2021
1 parent fa89b28 commit 4df20a2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/multibootusb/grub/menus/debian.d/current10-generic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
for isofile in $isopath/debian-10*.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 changes: 14 additions & 0 deletions data/multibootusb/grub/menus/debian.d/live10-generic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
for isofile in $isopath/debian-live-10*.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

0 comments on commit 4df20a2

Please sign in to comment.