asynchronous probert runs during partitioining can discard user's changes

Bug #2016901 reported by Olivier Gayot
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Unassigned

Bug Description

When a udev "block" event is received, subiquity starts a probert run so it can show a more up-to-date list of block devices, filesystems, etc. This is an asynchronous operation that can take a few seconds to a couple minutes.

When the probert run finishes, the data is immediately loaded in subiquity and it effectively discards any partitioning change that the user may have done so far.

This is a problem during manual partitioning in the desktop installer. The user may be in the middle of creating, editing or deleting partitions when the probert run finishes. All of a sudden, all the changes are discarded without any visible indication on the UI. At that point, the UI becomes inconsistent with subiquity's internal partitioning information ; and trying to edit partitions further leads to all sorts of errors (that are not visible to the user).

Revision history for this message
Olivier Gayot (ogayot) wrote :

Steps to reproduce:

1. Go into the manual partitioning menu
2. Do any of these:
   * Plug/unplug a USB key
   * Run sudo udevadm trigger

The udev events can also occur from other reasons.

xnox mentioned a script in ubiquity that is meant to reduce the number of udev events generated:

https://github.com/canonical/ubuntu-desktop-installer/issues/1830

Revision history for this message
Dan Bungert (dbungert) wrote :
Changed in subiquity:
status: New → Fix Committed
Revision history for this message
Dan Bungert (dbungert) wrote :

We believe this issue has been resolved in Subiquity 23.04.2.

If you had tested this with a pre-final version of Ubuntu 23.04, it's
recommended to download the final install media.

For testing with Ubuntu Server 22.04.x or 20.04.x, when running
Subiquity, you should offered a new version of the installer. Please
take that update to version 23.04.2 or later to get the fix.

If this is still a problem for you, please make a comment and set the state
back to New. Thank you for the bug report.

Changed in subiquity:
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.