Re: [PATCH 6/7] Return whatever we get here, we don't care if bootDev is None here.

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

 



I like this one, but I think there are several other bootDevice methods
that also raise exceptions in platform.py.

On Tue, 2009-03-03 at 18:19 -1000, David Cantrell wrote:
> This function will return None until the user sets up a /boot or
> a / filesystem.
> ---
>  platform.py |    7 +------
>  1 files changed, 1 insertions(+), 6 deletions(-)
> 
> diff --git a/platform.py b/platform.py
> index ef9ff0c..4adc5d1 100644
> --- a/platform.py
> +++ b/platform.py
> @@ -62,12 +62,7 @@ class Platform(object):
>              raise NotImplementedError("bootDevice not implemented for this platform")
>  
>          mntDict = self._mntDict()
> -        bootDev = mntDict.get("/boot", mntDict.get("/"))
> -
> -        if not bootDev:
> -            raise DeviceError("No bootable device found")
> -        else:
> -            return bootDev
> +        return mntDict.get("/boot", mntDict.get("/"))
>  
>      @property
>      def bootFSType(self):

_______________________________________________
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