From: James Bunton Date: Mon, 12 Jun 2023 02:38:00 +0000 (+1000) Subject: multiboot - support for old Ubuntu images as well X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/4c52c21d9c12c74424d75aa7bba5a47ce6391651?ds=sidebyside multiboot - support for old Ubuntu images as well --- diff --git a/hacks/multiboot-setup b/hacks/multiboot-setup index aafcb48..30bbe58 100755 --- a/hacks/multiboot-setup +++ b/hacks/multiboot-setup @@ -224,8 +224,16 @@ done function setup_ubuntu { menuentry "\$1" { loopback loop \$1 + set maybe_layerfs_path='' + for f in minimal.standard.live.squashfs; do + if [ -f "(loop)/casper/\$f" ]; then + echo " \$f" + set maybe_layerfs_path="layerfs-path=\$f" + echo "Setting \$maybe_layerfs_path" + fi + done echo "Loading kernel..." - linux (loop)/casper/vmlinuz* layerfs-path=minimal.standard.live.squashfs boot=casper iso-scan/filename=\$1 \$maybe_to_ram \$maybe_quiet + linux (loop)/casper/vmlinuz* \$maybe_layerfs_path boot=casper iso-scan/filename=\$1 \$maybe_to_ram \$maybe_quiet echo "Loading initrd..." initrd (loop)/casper/initrd* }