Blame 0041-nfs-nfsroot.sh-only-cat-etc-fstab-if-existant.patch
|
Harald Hoyer |
61c497 |
From 18d0c9b8589b9ffda3543a18676037105d8a48f9 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
61c497 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
61c497 |
Date: Thu, 14 Mar 2013 17:56:53 +0100
|
|
Harald Hoyer |
61c497 |
Subject: [PATCH] nfs/nfsroot.sh: only cat /etc/fstab, if existant
|
|
Harald Hoyer |
61c497 |
|
|
Harald Hoyer |
61c497 |
---
|
|
Harald Hoyer |
61c497 |
modules.d/95nfs/nfsroot.sh | 2 +-
|
|
Harald Hoyer |
61c497 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
61c497 |
|
|
Harald Hoyer |
61c497 |
diff --git a/modules.d/95nfs/nfsroot.sh b/modules.d/95nfs/nfsroot.sh
|
|
Harald Hoyer |
61c497 |
index 803a71f..067d172 100755
|
|
Harald Hoyer |
61c497 |
--- a/modules.d/95nfs/nfsroot.sh
|
|
Harald Hoyer |
61c497 |
+++ b/modules.d/95nfs/nfsroot.sh
|
|
Harald Hoyer |
61c497 |
@@ -18,7 +18,7 @@ nfs_to_var $root $netif
|
|
Harald Hoyer |
61c497 |
|
|
Harald Hoyer |
61c497 |
mount_nfs $root $NEWROOT $netif && { [ -e /dev/root ] || ln -s null /dev/root ; }
|
|
Harald Hoyer |
61c497 |
|
|
Harald Hoyer |
61c497 |
-cat $NEWROOT/etc/fstab > /dev/null
|
|
Harald Hoyer |
61c497 |
+[ -f $NEWROOT/etc/fstab ] && cat $NEWROOT/etc/fstab > /dev/null
|
|
Harald Hoyer |
61c497 |
|
|
Harald Hoyer |
61c497 |
# inject new exit_if_exists
|
|
Harald Hoyer |
61c497 |
echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm "$job"' > $hookdir/initqueue/nfs.sh
|