Factory reset GRUB config (99_reset) does not boot to the installer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Committed
|
High
|
Unassigned |
Bug Description
In subiquity/
#!/bin/sh
{HEADER}
set -e
cat << EOF
menuentry "Restore Ubuntu to factory state" {{
search --no-floppy --hint '(hd0,{PARTITION})' --set --fs-uuid {FS_UUID}
linux /casper/vmlinuz uuid={CASPER_UUID} rp-partuuid=
initrd /casper/initrd
}}
EOF
However, this boot entry cannot boot into the factory reset mode for the following reasons:
1. This does not boot into live squashfs layer, that means it boots into the "installed" live environment.
2. We would like to configure the boot parameters so we could specify cloud-configs to be used, and disable nouveau during and after installation.
This is the GRUB config we are using for the reset partition, for example:
menuentry "Restore Ubuntu to factory state" {
set gfxpayload=keep
linux /casper/vmlinuz layerfs-
initrd /casper/initrd
}
description: | updated |
description: | updated |
Changed in subiquity: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in subiquity: | |
status: | Triaged → Fix Committed |
My proposal is not to load Linux kernel, but maybe chainload into /EFI/boot/ bootx64. efi so that we can use the GRUB option over there.
Do you think this is okay?