projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae68b4
)
nfs/nfsroot.sh: trigger nfs mount with cat'ing /etc/fstab
author
Harald Hoyer
<harald@redhat.com>
Wed, 6 Mar 2013 15:58:11 +0000
(16:58 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 6 Mar 2013 16:29:11 +0000
(17:29 +0100)
otherwise the whole nfs communication can take too long for the
systemd-fstab-generator
modules.d/95nfs/nfsroot.sh
patch
|
blob
|
history
diff --git
a/modules.d/95nfs/nfsroot.sh
b/modules.d/95nfs/nfsroot.sh
index
ec0f376
..
803a71f
100755
(executable)
--- 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