[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(-)

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")
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index d50dcbd..71e4d0e 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -95,6 +95,16 @@ function doshutdown()

function doreboot()
{
+ if [ -e "/sys/firmware/reipl" ]; then
+ read REIPL_TYPE < /sys/firmware/reipl/reipl_type
+ echo "reipl_type=$REIPL_TYPE"
+ pushd /sys/firmware/reipl/$REIPL_TYPE >/dev/null 2>&1
+ for i in *; do
+ echo "$i=`cat $i`"
+ done
+ popd >/dev/null 2>&1
+ fi
+
echo $"about to exec shutdown -r"
exec /sbin/shutdown -r
exit 0
--
1.6.4


--
Mark

You must be the change you wish to see in the world. -- Mahatma Gandhi
Worrying is praying for that you do not wish to happen.

_______________________________________________
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