We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66b920c commit 6209edeCopy full SHA for 6209ede
modules.d/95nbd/nbdroot.sh
@@ -124,22 +124,14 @@ EOF
124
# to create the /sysroot mount.
125
fi
126
127
-# supported since nbd 3.8 via 77e97612
128
-if strstr "$(nbd-client --help 2>&1)" "systemd-mark"; then
129
- preopts="-systemd-mark $preopts"
130
-fi
131
-
132
if ! [ "$nbdport" -gt 0 ] 2> /dev/null; then
133
nbdport="-name $nbdport"
134
135
136
if ! nbd-client -check /dev/nbd0 > /dev/null; then
137
# shellcheck disable=SC2086
138
- nbd-client "$nbdserver" $nbdport /dev/nbd0 $preopts $opts || exit 1
+ nbd-client -p -systemd-mark "$nbdserver" $nbdport /dev/nbd0 $opts || exit 1
139
140
141
-# NBD doesn't emit uevents when it gets connected, so kick it
142
-echo change > /sys/block/nbd0/uevent
143
-udevadm settle
144
need_shutdown
145
exit 0
0 commit comments