cleardisk_gui: Fix going back to the cleardisks gui
1) When populating the store make left / right visible depend on if the
disk is listed in clearPartDisks or not
2) Don't extend clearPartDisks when moving to the next screen, but set it
so that drives which were moved to the left get removed from it.
3) The bootdisk is part of cleardisks, don't put it in
4) Update the bootloader drivelist, putting the select drive on the front,
don't override it. Even if we just want to mount a disk it should still
count in our bios drive order, so that grub gets a correct map
(Note even before this fix this was already effectively being done
by bootloader.py which overrides the drivelist as set by clearpart_gui)
Note this patch only fixes back/forth issues with the UI code, there is
still a problem in the underlying logic code, where after having
autopartitioned once, subsequent attemps will fail with no free space found.
I've filed this as bug 559233.
iw/cleardisks_gui.py | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/iw/cleardisks_gui.py b/iw/cleardisks_gui.py
index 10ffdcb..ec026ec 100644
@@ -60,8 +60,8 @@ class ClearDisksWindow (InstallWindow):