From 4c52c21d9c12c74424d75aa7bba5a47ce6391651 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 12 Jun 2023 12:38:00 +1000 Subject: [PATCH] multiboot - support for old Ubuntu images as well --- hacks/multiboot-setup | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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* } -- 2.39.2