Browse Source

nfs/nfsroot.sh: trigger nfs mount with cat'ing /etc/fstab

otherwise the whole nfs communication can take too long for the
systemd-fstab-generator
master
Harald Hoyer 12 years ago
parent
commit
6e0c1c448d
  1. 2
      modules.d/95nfs/nfsroot.sh

2
modules.d/95nfs/nfsroot.sh

@ -18,6 +18,8 @@ nfs_to_var $root $netif @@ -18,6 +18,8 @@ nfs_to_var $root $netif

mount_nfs $root $NEWROOT $netif && { [ -e /dev/root ] || ln -s null /dev/root ; }

cat $NEWROOT/etc/fstab > /dev/null

# inject new exit_if_exists
echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm "$job"' > $hookdir/initqueue/nfs.sh
# force udevsettle to break

Loading…
Cancel
Save