Activity log for bug #2051099

Date Who What changed Old value New value Message
2024-01-24 08:54:03 Yao Wei bug added bug
2024-01-24 08:54:57 Yao Wei description In subiquity/server/controllers/install.py, grub_reset_conf has the following config: #!/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={RP_UUID} nopersistent 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 media, for example: menuentry "Restore Ubuntu to factory state" { set gfxpayload=keep linux /casper/vmlinuz layerfs-path=minimal.standard.live.squashfs nopersistent ds=nocloud\;s=/cdrom/cloud-configs/reset-partition --- quiet splash modprobe.blacklist=nouveau nouveau.modeset=0 initrd /casper/initrd } In subiquity/server/controllers/install.py, it creates 99_reset for GRUB config if factory-reset is set: #!/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={RP_UUID} nopersistent       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 media, for example: menuentry "Restore Ubuntu to factory state" {  set gfxpayload=keep  linux /casper/vmlinuz layerfs-path=minimal.standard.live.squashfs nopersistent ds=nocloud\;s=/cdrom/cloud-configs/reset-partition --- quiet splash modprobe.blacklist=nouveau nouveau.modeset=0  initrd /casper/initrd }
2024-01-24 08:55:49 Yao Wei description In subiquity/server/controllers/install.py, it creates 99_reset for GRUB config if factory-reset is set: #!/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={RP_UUID} nopersistent       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 media, for example: menuentry "Restore Ubuntu to factory state" {  set gfxpayload=keep  linux /casper/vmlinuz layerfs-path=minimal.standard.live.squashfs nopersistent ds=nocloud\;s=/cdrom/cloud-configs/reset-partition --- quiet splash modprobe.blacklist=nouveau nouveau.modeset=0  initrd /casper/initrd } In subiquity/server/controllers/install.py, it creates 99_reset for GRUB config if factory-reset is set: #!/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={RP_UUID} nopersistent       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-path=minimal.standard.live.squashfs nopersistent ds=nocloud\;s=/cdrom/cloud-configs/reset-partition --- quiet splash modprobe.blacklist=nouveau nouveau.modeset=0  initrd /casper/initrd }
2024-02-12 08:58:02 Olivier Gayot subiquity: status New Triaged
2024-02-12 08:58:07 Olivier Gayot subiquity: importance Undecided High
2024-03-11 05:15:41 Yao Wei subiquity: status Triaged Fix Committed