Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Development (http://www.linux-archive.org/archlinux-development/)
-   -   Rescan for netdevs after clearing blacklist in linuxrc.s390 (#733299) (http://www.linux-archive.org/archlinux-development/568257-rescan-netdevs-after-clearing-blacklist-linuxrc-s390-733299-a.html)

David Cantrell 08-25-2011 05:34 PM

Rescan for netdevs after clearing blacklist in linuxrc.s390 (#733299)
 
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@redhat.com>
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 04:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.