Comment 3 for bug 2012077

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

Steps to reproduce
------------------
1) Start the install and go all the way to the partitioning screen
2) Selected guided partitioning (erase everything) and click Next
3) On the confirmation screen, open a terminal and run this command:
    * sudo udevadm trigger
4) Upon clicking next, subiquity will hand an empty configuration to curtin - resulting in a crash later on.

Root cause analysis
-------------------
What happens is that when the user is on the desktop installer's partitioning confirmation screen, subiquity is still listening to udev events.

If it receives a udev event, subiquity triggers a new probert run, which eventually calls FilesystemModel.reset() on completion. This means already POST-ed data end up being discarded.

It only happens in the desktop installer because the server installer marks filesystem configured upon reaching the confirmation screen. This makes subiquity ignore further udev events.

I recommend we do the same for the desktop installer, although fixing the race condition entirely would be better.