Re: [PATCH] reIPL is calculating the boot drive incorrectly

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

 



>  iutil.py            |    6 +++++-
>  loader/linuxrc.s390 |   10 ++++++++++
>  2 files changed, 15 insertions(+), 1 deletions(-)

Is this to fix 537390?  If so, please reference the bug number in the
subject so we all know what's going on.  Thanks.

> diff --git a/iutil.py b/iutil.py
> index 0b15bd8..7efb74d 100644
> --- a/iutil.py
> +++ b/iutil.py
> @@ -980,7 +980,11 @@ def reIPL(anaconda, loader_pid):
> 
>      reipl_path = "/sys/firmware/reipl"
> 
> -    ipldev = anaconda.id.bootloader.device
> +    ipldev = None
> +    if anaconda.id.storage.fsset.mountpoints.has_key ('/boot'):
> +        ipldev = anaconda.id.storage.fsset.mountpoints['/boot'].disk.name
> +    elif anaconda.id.storage.fsset.mountpoints.has_key ('/'):
> +        ipldev = anaconda.id.storage.fsset.mountpoints['/'].disk.name
> 
>      if ipldev is None:
>          message = _("Error determining mount point type")

You don't need to do this yourself.  You can just:

try:
   ipldev = anaconda.id.platform.bootDevice.disk.name
except:
   ipldev = None

- Chris

_______________________________________________
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