[PATCH] Rescan for netdevs after clearing blacklist in linuxrc.s390 (#733299)

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

 



When one is running installation with the "cio_ignore=all,!0.0.0009"
kernel parameter and CMS config file is not used to configure devices,
linuxrc.s390 offers the choice to clear blacklist.  But after clearing
the blacklist, user has to manually enter all values to configure the
device.  This patch rescans for network devices after clearing the
blacklist.

Patch from Jan Stodola <jstodola@xxxxxxxxxx>
---
 loader/linuxrc.s390 |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index d64009b..9552c0c 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -460,7 +460,11 @@ function dialog_network_table() {
             fi
             [ "$choice" = "m" ] && break
             [ "$choice" = "r" ] && continue 2
-            [ "$cio_wc_bytes" != "0" -a "$choice" = "c" ] && break
+            if [ "$cio_wc_bytes" != "0" -a "$choice" = "c" ]; then
+                echo $"Clearing device blacklist..."
+                cio_ignore -R || echo $"Device blacklist could not be cleared"
+                continue 2
+            fi
             [[ "$choice" =~ ^[[:digit:]]+$ ]]
             case $? in
                 0)
@@ -479,10 +483,6 @@ function dialog_network_table() {
                     ;;
             esac
         done
-        if [ "$choice" = "c" ]; then
-            echo $"Clearing device blacklist..."
-            cio_ignore -R || echo $"Device blacklist could not be cleared"
-        fi
         [ "$choice" = "m" ] && break
         # finally extract config info from selected item
         # array nettable starts at index zero, user input starts at index one
-- 
1.7.1

_______________________________________________
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