95fcoe: Do not overwrite FCoE configuration
If the installation already has a FCoE configuration we should not attempt to overwrite it but rather use the pre-defined configuration. References: bsc#993861 Signed-off-by: Hannes Reinecke <hare@suse.com>master
parent
6b96b50d2c
commit
d066fcc3fb
|
|
@ -38,6 +38,7 @@ netdriver=$(readlink -f /sys/class/net/$netif/device/driver)
|
|||
netdriver=${netdriver##*/}
|
||||
|
||||
write_fcoemon_cfg() {
|
||||
[ -f /etc/fcoe/cfg-$netif ] && return
|
||||
echo FCOE_ENABLE=\"yes\" > /etc/fcoe/cfg-$netif
|
||||
if [ "$dcb" = "dcb" ]; then
|
||||
echo DCB_REQUIRED=\"yes\" >> /etc/fcoe/cfg-$netif
|
||||
|
|
|
|||
|
|
@ -94,6 +94,8 @@ install() {
|
|||
local _fcoeconf=$(cmdline)
|
||||
[[ $_fcoeconf ]] && printf "%s\n" "$_fcoeconf" >> "${initdir}/etc/cmdline.d/95fcoe.conf"
|
||||
fi
|
||||
inst_multiple /etc/fcoe/cfg-*
|
||||
|
||||
inst "$moddir/fcoe-up.sh" "/sbin/fcoe-up"
|
||||
inst "$moddir/fcoe-edd.sh" "/sbin/fcoe-edd"
|
||||
inst "$moddir/fcoe-genrules.sh" "/sbin/fcoe-genrules.sh"
|
||||
|
|
|
|||
Loading…
Reference in New Issue