From d7494b20f2a9d11d6d27f13c1c22f4243e6921b8 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 3 May 2023 23:22:59 +0800 Subject: [PATCH] workaround out of memory error on loop ubuntu iso --- ks-trans.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ks-trans.cfg b/ks-trans.cfg index e687878..bc83259 100644 --- a/ks-trans.cfg +++ b/ks-trans.cfg @@ -136,6 +136,8 @@ if [ "$distro" = "ubuntu" ]; then cat <$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 ---