workaround out of memory error on loop ubuntu iso

This commit is contained in:
bin456789 2023-05-03 23:22:59 +08:00
parent fbe42c6fed
commit d7494b20f2
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -136,6 +136,8 @@ if [ "$distro" = "ubuntu" ]; then
cat <<EOF >$grub_cfg
set timeout=5
menuentry "reinstall" {
# https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1851311
rmmod tpm
search --no-floppy --label --set=root installer
loopback loop $iso_file
linux (loop)/casper/vmlinuz iso-scan/filename=$iso_file autoinstall cloud-config-url=$ks $extra_cmdline ---