[canary] installer is not preseeded

Bug #2031675 reported by Jean-Baptiste Lallement
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-desktop-installer
Fix Released
Critical
Unassigned

Bug Description

Mantic 20230817

The ISO boots directly to the live session and doesn't display the "try or install" selection screen.

This is because casper checks for /root/snap/ubuntu-desktop-installer/ but the installer is not preseeded.

Tags: fde
tags: added: fde
summary: - [canary] no try or install option on boot
+ [canary] no "try or install" option on boot
Revision history for this message
Brian Murray (brian-murray) wrote : Re: [canary] no "try or install" option on boot

Conversely when I boot the non-canary image it immediately launches the installer and does not present the "try or install" selection screen.

Changed in ubuntu-desktop-installer:
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

The screen is displayed when the installer is started using the --try-or-install option which should be the case if you use the standard desktop unit from desktop as in https://git.launchpad.net/casper/tree/scripts/casper-bottom/61desktop_canary_tweaks#n51

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

It is because the desktop installer is not pre-installed on Canary and /snap/ubuntu-desktop-installer doesn't exist at casper time, so script 61 exits early.

Revision history for this message
Sebastien Bacher (seb128) wrote :

We defined the check at the time as a way to tell apart the desktop legacy installer vs the new installer.

The assumption was that the installer snap would be available because pre-seeded was done at image build time (to improve live session start performance). Things are different in the canary case and we can't do the preseeding at image build anymore there right?

If so we need to change the

if [ ! -d /root/snap/ubuntu-desktop-installer/ ]; then
    exit 0
fi

to some other condition. Any idea? Maybe we should just make livecd-rootfs create a new file for any of the ubuntu-desktop-installer based image and check for that file instead?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

That's fine I think. The installer must be pre-installed anyway otherwise it takes too much time to start the session.

Changed in ubuntu-desktop-installer:
importance: Undecided → High
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
summary: - [canary] no "try or install" option on boot
+ [canary] installer is not preseeded
description: updated
Changed in ubuntu-desktop-installer:
status: Confirmed → Triaged
importance: High → Critical
Revision history for this message
Steve Langasek (vorlon) wrote :

AIUI this is fixed by livecd-rootfs 23.10.26 in -proposed.

livecd-rootfs (23.10.26) mantic; urgency=medium

  [ Łukasz 'sil2100' Zemczak ]
  * Update the enhanced-sb layer model to not preinstall the printing snaps,
    per changes to seeds. Live layer model not changed as it will go away
    soon per our staged changes.

  [ Michael Hudson-Doyle ]
  * Use a traditional seed.yaml style seed for the canary installer's live

 -- Łukasz 'sil2100' Zemczak <email address hidden> Mon, 28 Aug 2023 12:13:38 +0200

Changed in ubuntu-desktop-installer:
status: Triaged → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

Confirmed working with the 20230829 canary image.

Changed in ubuntu-desktop-installer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.