summaryrefslogtreecommitdiff
path: root/modules.d
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-06 16:58:11 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-06 17:29:11 +0100
commit6e0c1c448d49d0e9c81ad16a2d4fba3190c80207 (patch)
treeb7bfa2b929d3206b0f7525aed9d31f42d1004338 /modules.d
parent6ae68b467447dab87e0f2796285d2751252b8b9a (diff)
downloaddracut-6e0c1c448d49d0e9c81ad16a2d4fba3190c80207.tar.gz
dracut-6e0c1c448d49d0e9c81ad16a2d4fba3190c80207.tar.bz2
dracut-6e0c1c448d49d0e9c81ad16a2d4fba3190c80207.zip
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
Diffstat (limited to 'modules.d')
-rwxr-xr-xmodules.d/95nfs/nfsroot.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/95nfs/nfsroot.sh b/modules.d/95nfs/nfsroot.sh
index ec0f3767..803a71f3 100755
--- a/modules.d/95nfs/nfsroot.sh
+++ b/modules.d/95nfs/nfsroot.sh
@@ -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