dracut/0015-98usrmount-mount-usr.sh-check-if-we-have-NEWROOT-etc.patch
Harald Hoyer 9e9f8f2f11 dracut-017-43.git20120312
- live image: fixed image uncompression
- live updates for livenet
2012-03-12 15:46:29 +01:00

23 lines
633 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 file changed, 3 insertions(+), 1 deletion(-)
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