Browse Source

nbd/nbdroot.sh: call nbd-client with "--systemd-mark"

otherwise nbd-client will get killed by systemd
master
Harald Hoyer 11 years ago
parent
commit
056a3f2427
  1. 4
      modules.d/95nbd/nbdroot.sh

4
modules.d/95nbd/nbdroot.sh

@ -111,6 +111,10 @@ if [ "$root" = "block:/dev/root" -o "$root" = "dhcp" ]; then
fi fi
fi fi


if strstr "$(nbd-client --help 2>&1)" "systemd-mark"; then
preopts="--systemd-mark $preopts"
fi

nbd-client $preopts "$nbdserver" $nbdport /dev/nbd0 $opts || exit 1 nbd-client $preopts "$nbdserver" $nbdport /dev/nbd0 $opts || exit 1


# NBD doesn't emit uevents when it gets connected, so kick it # NBD doesn't emit uevents when it gets connected, so kick it

Loading…
Cancel
Save