diff options
author | Harald Hoyer <harald@redhat.com> | 2009-09-15 15:38:53 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-09-15 15:38:53 +0200 |
commit | a52586e8eaa7d0e7b95bffd49e896a8db4eac572 (patch) | |
tree | b8c0ef8a3cb8e940ec9cb663669d6b69834ed88e /modules.d/95nbd | |
parent | 5759574b2674cedf4d543c7a8da05d40576f31d3 (diff) | |
download | dracut-a52586e8eaa7d0e7b95bffd49e896a8db4eac572.tar.gz dracut-a52586e8eaa7d0e7b95bffd49e896a8db4eac572.tar.bz2 dracut-a52586e8eaa7d0e7b95bffd49e896a8db4eac572.zip |
network: break udevsettle early
Diffstat (limited to 'modules.d/95nbd')
-rwxr-xr-x | modules.d/95nbd/nbdroot | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/95nbd/nbdroot b/modules.d/95nbd/nbdroot index 37841d6c..912eae24 100755 --- a/modules.d/95nbd/nbdroot +++ b/modules.d/95nbd/nbdroot @@ -95,8 +95,8 @@ nbd-client $preopts "$nbdserver" "$nbdport" /dev/nbd0 $opts || exit 1 # If we didn't get a root= on the command line, then we need to # add the udev rules for mounting the nbd0 device if [ ! -e /etc/udev/rules.d/99-mount.rules ]; then - echo '[ -e /dev/nbd0 ] && { ln -s /dev/nbd0 /dev/root 2>/dev/null; rm "$job"; }' \ - >> /initqueue-settled/nbd.sh + echo 'settle_exit_if_exists="--exit-if-exists=/dev/nbd0"; [ -e /dev/nbd0 ] && { ln -s /dev/nbd0 /dev/root 2>/dev/null; rm "$job"; }' \ + >> /initqueue/nbd.sh echo '[ -e /dev/root ]' > /initqueue-finished/nbd.sh @@ -107,4 +107,6 @@ fi # NBD doesn't emit uevents when it gets connected, so kick it echo change > /sys/block/nbd0/uevent +# force udevsettle to break +> /initqueue/work exit 0 |