File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -124,22 +124,14 @@ EOF
124124 # to create the /sysroot mount.
125125fi
126126
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-
132127if ! [ " $nbdport " -gt 0 ] 2> /dev/null; then
133128 nbdport=" -name $nbdport "
134129fi
135130
136131if ! nbd-client -check /dev/nbd0 > /dev/null; then
137132 # shellcheck disable=SC2086
138- nbd-client " $nbdserver " $nbdport /dev/nbd0 $preopts $opts || exit 1
133+ nbd-client -p -systemd-mark " $nbdserver " $nbdport /dev/nbd0 $opts || exit 1
139134fi
140135
141- # NBD doesn't emit uevents when it gets connected, so kick it
142- echo change > /sys/block/nbd0/uevent
143- udevadm settle
144136need_shutdown
145137exit 0
You can’t perform that action at this time.
0 commit comments