On Wed, 2012-08-29 at 10:01 -0400, Chris Lumens wrote:
> diff --git a/pyanaconda/ui/gui/spokes/storage.py
b/pyanaconda/ui/gui/spokes/storage.py
> index 4916a3b..02c2be4 100644
> --- a/pyanaconda/ui/gui/spokes/storage.py
> +++ b/pyanaconda/ui/gui/spokes/storage.py
> @@ -415,6 +415,10 @@ class StorageSpoke(NormalSpoke, StorageChecker):
>
> self.disks = getDisks(self.storage.devicetree)
>
> + # if there's only one disk, select it by default
> + if len(self.disks) == 1 and not self.selected_disks:
> + self.selected_disks = [self.disks[0].name]
> +
> with gdk_threaded():
> # properties: kind, description, capacity, os, popup-info
> for disk in self.disks:
Practically, it looks like this patch makes it so the one disk is
already selected, but the user would still have to visit the spoke and
click continue to be able to proceed with installation. Is that
correct?
This version is wrong, actually. It should be setting
self.data.ignoredisk.onlyuse to the lone disk's name instead of setting
self.selected_disks to the same. Fixed locally. Let me know if you'd
like to see the corrected version.
What you get is "Autopart selected" as the status with the one disk in
ignoredisks.onlyuse, but the spoke is still incomplete since apply
wasn't run and therefore storage.rootDevice is still None. All you have
to do is enter and then leave the spoke to get autopart and be ready to
go.
Dave
- Chris
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches