Subiquity in inconsistent state after crash/respawn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
When subiquity crashes it restarts automatically and the installation process begin from the first step (language selection). The impression the user gets is that the installation process restarted from scratch, everything is in a clean state and the installation can be retried. This is however not true if curtin already started installing when the crash happens, as:
* /target is still mounted
* curtin is still running in background
Proceeding with the installation from this state may bring it to the end, but with settings which are different from those entered during the second try, e.g. different storage/LVM settings. This can be confusing and can lead to unexpected results.
Should subiquity not autorestart on crashes, at least if the crash happens after a given point of no return (curtin called already)?
I've had this very experience just last week. Beyond /target (and many things under it) being mounted there is some persistent state between subiquity restarts (which is nice for the auto-update path) however it may be causing issues when some selections changes. For example, I played with setting/removing proxy and setting/removing mirror; the result after a few failures was subiquity writing an apt file in the /target/etc/apt overlay mount which apt could not parse (it had errors).
There should be a way to clear out this persistent setting surfaced to the user on restart after crash (do you want to keep your previous choices?)