mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
workaround out of memory error on loop ubuntu iso
This commit is contained in:
parent
fbe42c6fed
commit
d7494b20f2
@ -136,6 +136,8 @@ if [ "$distro" = "ubuntu" ]; then
|
|||||||
cat <<EOF >$grub_cfg
|
cat <<EOF >$grub_cfg
|
||||||
set timeout=5
|
set timeout=5
|
||||||
menuentry "reinstall" {
|
menuentry "reinstall" {
|
||||||
|
# https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1851311
|
||||||
|
rmmod tpm
|
||||||
search --no-floppy --label --set=root installer
|
search --no-floppy --label --set=root installer
|
||||||
loopback loop $iso_file
|
loopback loop $iso_file
|
||||||
linux (loop)/casper/vmlinuz iso-scan/filename=$iso_file autoinstall cloud-config-url=$ks $extra_cmdline ---
|
linux (loop)/casper/vmlinuz iso-scan/filename=$iso_file autoinstall cloud-config-url=$ks $extra_cmdline ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user