dracut/0015-98usrmount-mount-usr.s...

23 lines
635 B
Diff

From 9eded206c90c0ce65b1addc55e4a8d83fb66ad3b Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Tue, 28 Feb 2012 16:35:08 +0100
Subject: [PATCH] 98usrmount/mount-usr.sh: check, if we have
$NEWROOT/etc/fstab
---
modules.d/98usrmount/mount-usr.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules.d/98usrmount/mount-usr.sh b/modules.d/98usrmount/mount-usr.sh
index f9d049e..39f75b9 100755
--- a/modules.d/98usrmount/mount-usr.sh
+++ b/modules.d/98usrmount/mount-usr.sh
@@ -73,4 +73,6 @@ mount_usr()
fi
}
-mount_usr
+if [ -f "$NEWROOT/etc/fstab" ]; then
+ mount_usr
+fi