Skip to content

Commit

Permalink
Fix iso loopback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mexit committed Mar 23, 2024
1 parent 55cb45b commit bd50877
Show file tree
Hide file tree
Showing 56 changed files with 65 additions and 62 deletions.
2 changes: 1 addition & 1 deletion config/4MLinux/4MLinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg=""
bootoptions=""
linux_path="(loop)/boot/bzImage"
Expand Down
2 changes: 1 addition & 1 deletion config/Acronis_True_Image/Acronis_True_Image.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"

menuentry "Acronis True Image (64-bit)" {
echo Loading kernel...
Expand Down
2 changes: 1 addition & 1 deletion config/AntivirusLiveCD/AntivirusLiveCD.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg=""
bootoptions="rw"
linux_path="(loop)/boot/bzImage"
Expand Down
2 changes: 1 addition & 1 deletion config/Archman/Archman.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
bootoptions="archisobasedir=arch archisolabel=$cd_label cow_spacesize=10G earlymodules=loop modules-load=loop rd.modules-load=loop"
Expand Down
2 changes: 1 addition & 1 deletion config/CentOS/CentOS.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label quiet"
Expand Down
2 changes: 1 addition & 1 deletion config/EndeavourOS/EndeavourOS.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
bootoptions="archisobasedir=arch cow_spacesize=10G archisolabel=$cd_label earlymodules=loop modules-load=loop rd.modules-load=loop"
Expand Down
2 changes: 1 addition & 1 deletion config/Gentoo/Gentoo.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2; do
submenu "$isoname ->" "$isofile" {
gfxpayload=keep
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="isoboot=$iso_path"
bootoptions="root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot"
linux_path="(loop)/boot/gentoo"
Expand Down
2 changes: 1 addition & 1 deletion config/KDE_neon/neon-user.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="iso-scan/filename=${iso_path}"
bootoptions="boot=casper apparmor=0 quiet splash"
linux_path="(loop)/casper/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/KaOS/KaOS.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
bootoptions="kdeosisobasedir=kdeos kdeosisolabel=$cd_label xdriver=no nouveau.modeset=1 i915.modeset=1 radeon.modeset=1"
Expand Down
2 changes: 1 addition & 1 deletion config/Linuxfx/Linuxfx.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="iso-scan/filename=$iso_path"
bootoptions="boot=casper quiet splash"
linux_path="(loop)/casper/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/Mageia/Mageia_netinstall.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg=""
bootoptions="audit=0"
linux_path="(loop)/isolinux/x86_64/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/antiX/antiX_base_full.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="from=hd,usb fromiso=$iso_path"
bootoptions="quiet splasht disable=lxF"
linux_path="(loop)/antiX/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/antiX/antiX_core_net.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="from=hd,usb fromiso=$iso_path"
bootoptions="quiet splash=v disable=lx"
linux_path="(loop)/antiX/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/archbang/archbang.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
bootoptions="archisobasedir=arch archisolabel=$cd_label cow_spacesize=2G"
Expand Down
2 changes: 1 addition & 1 deletion config/athenaos/athenaos.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
bootoptions="archisobasedir=arch archisolabel=ATHENA-OS cow_spacesize=4G copytoram=n driver=free nouveau.modeset=1 radeon.modeset=1 i915.modeset=1 nvme_load=yes"
Expand Down
2 changes: 1 addition & 1 deletion config/bluestar/bluestar.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
root=(loop)
probe --label --set=cd_label (loop)
isocfg="img_dev=$imgdevpath img_loop=$iso_path"
Expand Down
2 changes: 1 addition & 1 deletion config/clonezilla/clonezilla.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions='boot=live union=overlay username=user config quiet components noswap edd=on \
enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" \
Expand Down
2 changes: 1 addition & 1 deletion config/clonezilla/clonezilla_eoan.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions='boot=live union=overlay username=user hostname=eoan config quiet components noswap edd=on \
enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" \
Expand Down
2 changes: 1 addition & 1 deletion config/clonezilla/clonezilla_focal.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions='boot=live union=overlay username=user hostname=focal config quiet components noswap edd=on \
enforcing=0 locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" \
Expand Down
2 changes: 1 addition & 1 deletion config/damnsmalllinux/damnsmalllinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="from=hd,usb,mmc fromiso=$iso_path"
bootoptions="quiet splasht disable=lxF"
linux_path="(loop)/antiX/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/debian/debian-mini.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for isofile in $iso_dir/$iso_pattern; do
menuentry "$isoname ($grub_configfile) ->" "$isofile" "$grub_configfile" {
iso_path="$2"
export iso_path
loopback loop "$iso_path"
LOOPBACK "$iso_path"
root=(loop)
configfile /boot/grub/$3
loopback --delete loop
Expand Down
2 changes: 1 addition & 1 deletion config/devuan/devuan-install.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2 $iso_dir/$iso_patte

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg=""
bootoptions=""
linux_path="(loop)/boot/isolinux/linux"
Expand Down
2 changes: 1 addition & 1 deletion config/devuan/devuan_desktop-live.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions="boot=live username=devuan apparmor=0"
linux_path="(loop)/live/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/devuan/devuan_minimal-live.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions="boot=live"
linux_path="(loop)/live/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/dr-parted-live/dr-parted-live.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions="boot=live components"
linux_path="(loop)/live/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/euroLinux/EuroLinux-desktop.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="root=live:CDLABEL=$cd_label selinux=0 rd.live.image"
Expand Down
2 changes: 1 addition & 1 deletion config/euroLinux/EuroLinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label"
Expand Down
2 changes: 1 addition & 1 deletion config/fedora/fedora-live.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="root=live:CDLABEL=$cd_label rd.live.image quiet"
Expand Down
2 changes: 1 addition & 1 deletion config/fedora/fedora.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for isofile in $iso_dir/$iso_pattern1 $iso_dir/$iso_pattern2 $iso_dir/$iso_patte

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label quiet"
Expand Down
2 changes: 1 addition & 1 deletion config/ferenos/ferenos.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="iso-scan/filename=${iso_path}"
bootoptions="file=/cdrom/preseed/ferenos.seed boot=casper"
linux_path="(loop)/casper/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/gparted/gparted-live.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="findiso=$iso_path"
bootoptions="boot=live union=overlay username=user config components quiet noswap"
linux_path="(loop)/live/vmlinuz"
Expand Down
7 changes: 7 additions & 0 deletions config/grub.config
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ function find_grub_cfg {
}
}

function LOOPBACK {
if [ -e (loop) ]; then
loopback --delete loop
fi
loopback loop "$1"
}

submenu "Auto-detect ISOs (Directory: $iso_dir) -->" {
echo -n "Loading configuration files... "
for cfgfile in /MultiOS-USB/config/*/*.cfg /MultiOS-USB/config_priv/*/*.cfg; do
Expand Down
10 changes: 3 additions & 7 deletions config/grub_loopback/loopback.cfg
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
# detect loopback.cfg compatible ISO's

for isofile in $iso_dir/*.iso $iso_dir/*/*.iso; do
for isofile in $iso_dir/*.iso; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$iso_dir/(.*)" "$isofile"

loopback loop "$isofile"
LOOPBACK "$isofile"
if [ -e "(loop)/boot/grub/loopback.cfg" ]; then
grub=grub
elif [ -e "(loop)/boot/grub2/loopback.cfg" ]; then
grub=grub2
else
loopback --delete loop
continue
fi

submenu "$isoname (loopback) ->" "$isofile" "$grub" {
iso_path="$2"
export iso_path
loopback loop "$2"
LOOPBACK "$2"
root=(loop)
configfile /boot/$3/loopback.cfg
loopback --delete loop
}

loopback --delete loop
fi
done
2 changes: 1 addition & 1 deletion config/kaspersky/krd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for isofile in /data/$iso_pattern; do

submenu "Kaspersky Rescue Disk ($isoname) ->" "$isofile" "$isoname" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="isoloop=$3"
bootoptions="net.ifnames=0 lang=en"
linux_path="(loop)/boot/grub/k-x86_64"
Expand Down
2 changes: 1 addition & 1 deletion config/lwRescue/lwRescue.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="isoloop=$iso_path scandelay=1"
bootoptions="setkmap=de"
linux_path="(loop)/isolinux/rescue64"
Expand Down
2 changes: 1 addition & 1 deletion config/mx/MX-19.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="from=hd,usb fromiso=$iso_path"
bootoptions="quiet splasht nosplash"
linux_path="(loop)/antiX/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/openSUSE/openSUSE-DVD.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="install=hd:$iso_path"
bootoptions="splash=silent"
linux_path="(loop)/boot/x86_64/loader/linux"
Expand Down
2 changes: 1 addition & 1 deletion config/openSUSE/openSUSE-NET.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg=""
bootoptions="splash=silent"
linux_path="(loop)/boot/x86_64/loader/linux"
Expand Down
2 changes: 1 addition & 1 deletion config/oracleLinux/OracleLinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
probe --label --set=cd_label (loop)
isocfg="iso-scan/filename=$iso_path"
bootoptions="inst.stage2=hd:LABEL=$cd_label"
Expand Down
2 changes: 1 addition & 1 deletion config/pclinuxos/pclinuxos.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
isocfg="bootfromiso=$iso_path root=(loop)"
bootoptions="livecd=livecd vga=788 keyb=us"
linux_path="(loop)/isolinux/vmlinuz"
Expand Down
2 changes: 1 addition & 1 deletion config/ploplinux/ploplinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for isofile in $iso_dir/$iso_pattern; do

submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop $iso_path
LOOPBACK "$iso_path"
root=(loop)
isocfg="iso_filename=$iso_path"
bootoptions=""
Expand Down

0 comments on commit bd50877

Please sign in to comment.