Browse Source

95fcoe: Add shutdown script

We should be disabling the FCoE connection (which triggers sending
a LOGO internally) to logout from the target; this resets the target
and will avoid hitting a busy condition during reboots.

References: bsc#994860

Signed-off-by: Hannes Reinecke <hare@suse.com>
master
Hannes Reinecke 9 years ago committed by Daniel Molkentin
parent
commit
a3f91db476
  1. 1
      modules.d/95fcoe/module-setup.sh
  2. 6
      modules.d/95fcoe/stop-fcoe.sh

1
modules.d/95fcoe/module-setup.sh

@ -108,6 +108,7 @@ install() { @@ -108,6 +108,7 @@ install() {
inst_hook pre-trigger 03 "$moddir/lldpad.sh"
inst_hook cmdline 99 "$moddir/parse-fcoe.sh"
inst_hook cleanup 90 "$moddir/cleanup-fcoe.sh"
inst_hook shutdown 40 "$moddir/stop-fcoe.sh"
dracut_need_initqueue
}


6
modules.d/95fcoe/stop-fcoe.sh

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
#!/bin/bash

for f in /sys/bus/fcoe/devices/ctlr_* ; do
[ -e $f ] || continue
echo 0 > $f/enabled
done
Loading…
Cancel
Save