Merge lp:~xnox/ubiquity/fix-value-errors into lp:ubiquity
| Status: | Merged |
|---|---|
| Approved by: | Colin Watson on 2012-09-24 |
| Approved revision: | 5654 |
| Merged at revision: | 5681 |
| Proposed branch: | lp:~xnox/ubiquity/fix-value-errors |
| Merge into: | lp:ubiquity |
| Diff against target: |
41 lines (+11/-5) 2 files modified
debian/changelog (+8/-0) ubiquity/plugins/ubi-partman.py (+3/-5) |
| To merge this branch: | bzr merge lp:~xnox/ubiquity/fix-value-errors |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | 2012-09-11 | Approve on 2012-09-24 | |
| Ubuntu Installer Team | 2012-09-11 | Pending | |
|
Review via email:
|
|||
Description of the Change
It appears that previous fix to the ValueError was incomplete. Specifically the cleanup method is executed on abort and results in ValueError when run in ubiquity-dm session at the stepPartAsk page / "What would you like to do?".
So it seems like communication with debconf inside cleanup is also not-safe at the "pre-install" steps. But also I don't see a reason, why this should be communicated to debconf at the cleanup. Cleanup is a bit a catch all and is called at cancel, back-out to previous plugin and abort.
I am proposing to move grub device pre-seeding into the ok_handler which is executed only when confirming the installation / moving to the next step, while we still have debconf opened.
I still need to test manual partitioning & Qt frontend. But this seems like a better solution.
Colin, where there other reasons to run grub-installer/
- 5653. By Dimitri John Ledkov on 2012-09-24
-
catch up from trunk
| Dimitri John Ledkov (xnox) wrote : | # |
Manually testing for bug 756920 shows no regressions with proposed branch.
Moving to cleanup, doesn't look like a right solution if you want that command to run before exit_ui_loops. Because cheanup_handler performs exit_ui_loops first, and then calls cleanup.
Semantically currently this chain of calls is happening: ok_handler -> exit_ui_loops -> cleanup -> check/preseed grub device
In the proposed branch I'm moving it to become: ok_handler -> check/preseed grub device -> exit_ui_loops -> cleanup
The reason being we should not fiddle with debconf upon back/quit and setting bootdev only matters if we continue to install.
The crashes reported by users is during quitting the installer in-between transitions to/from step-partman.
- 5654. By Dimitri John Ledkov on 2012-09-24
-
typo
| Colin Watson (cjwatson) wrote : | # |
Yes, cleanup was clearly wrong.
If bug 756920 is definitely no longer present, then go ahead and merge this (for beta-2 if possible to maximise testing).


This was moved to exit_ui_loops (and later to cleanup) due to bug 756920. I'm OK with you moving it back to ok_handler if you can demonstrate that that bug no longer occurs; it's certainly possible that it's since been fixed some other way, but it was a sufficiently bad bug that we should test it.