Re: [PATCH 10/13] Report when we cannot find any free space partitions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-03-13 at 18:09 -1000, David Cantrell wrote:
> If the user is performing an automatic partitioning install and
> we fail to find any usable free space partitions, tell the user
> what happened and that they should choose another partitioning
> method.

Ack.

> ---
>  storage/partitioning.py |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/partitioning.py b/storage/partitioning.py
> index cf151d1..f4c40f2 100644
> --- a/storage/partitioning.py
> +++ b/storage/partitioning.py
> @@ -167,6 +167,15 @@ def doAutoPartition(anaconda):
>  
>      if anaconda.id.storage.doAutoPart:
>          (disks, devs) = _createFreeSpacePartitions(anaconda)
> +
> +        if disks == []:
> +            anaconda.intf.messageWindow(_("Error Partitioning"),
> +                                        _("Could not find enough free space "
> +                                          "for automatic partitioning, please "
> +                                          "use another partitioning method."),
> +                                        custom_icon='error')
> +            return DISPATCH_BACK
> +
>          _schedulePartitions(anaconda, disks)
>  
>      # sanity check the individual devices

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux