add s390x netdev setup
s390x netdev need special cmdline to bring up parse the ifcfg file to append proper cmdline, also add znet dracut module Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
e8693e46f6
commit
7148c0a30d
@ -102,11 +102,26 @@ kdump_setup_vlan() {
|
||||
fi
|
||||
}
|
||||
|
||||
# setup s390 znet cmdline
|
||||
# $1: netdev name
|
||||
kdump_setup_znet() {
|
||||
local _options=""
|
||||
. /etc/sysconfig/network-scripts/ifcfg-$1
|
||||
for i in $OPTIONS; do
|
||||
_options=${_options},$i
|
||||
done
|
||||
echo rd.znet=${NETTYPE},${SUBCHANNELS}${_options} > ${initdir}/etc/cmdline.d/30znet.conf
|
||||
}
|
||||
|
||||
# Setup dracut to bringup a given network interface
|
||||
kdump_setup_netdev() {
|
||||
local _netdev=$1
|
||||
local _static _proto
|
||||
|
||||
if [ "$(uname -m)" = "s390x" ]; then
|
||||
kdump_setup_znet $_netdev
|
||||
fi
|
||||
|
||||
_netmac=`ip addr show $_netdev 2>/dev/null|awk '/ether/{ print $2 }'`
|
||||
_static=$(kdump_static_ip $_netdev)
|
||||
if [ -n "$_static" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user