mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
nbd/nbdroot.sh: call nbd-client with "--systemd-mark"
otherwise nbd-client will get killed by systemd
This commit is contained in:
parent
8fa1afb65c
commit
056a3f2427
@ -111,6 +111,10 @@ if [ "$root" = "block:/dev/root" -o "$root" = "dhcp" ]; then
|
||||
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 doesn't emit uevents when it gets connected, so kick it
|
||||
|
Loading…
Reference in New Issue
Block a user