Blame SOURCES/0043-rescue-Suggest-using-recursive-bind-mounts.patch

e76f14
From 5c9715d182c95601c63282050ddc9ae1d45a22ac Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Thu, 24 Mar 2016 10:46:31 +0000
e76f14
Subject: [PATCH] rescue: Suggest using recursive bind mounts.
e76f14
e76f14
Since /dev and other directories contain sub-mounts, suggest using
e76f14
--rbind instead of --bind.  This also allows us to remove the /dev/pts
e76f14
line.
e76f14
e76f14
(cherry picked from commit 72fd0531ab8446dc00d565cf2f526f5c9bcee968)
e76f14
---
e76f14
 rescue/rescue.c | 7 +++----
e76f14
 1 file changed, 3 insertions(+), 4 deletions(-)
e76f14
e76f14
diff --git a/rescue/rescue.c b/rescue/rescue.c
e76f14
index 08c8062..16028a7 100644
e76f14
--- a/rescue/rescue.c
e76f14
+++ b/rescue/rescue.c
e76f14
@@ -461,10 +461,9 @@ do_suggestion (struct drv *drvs)
e76f14
 
e76f14
     /* If it's Linux, print the bind-mounts. */
e76f14
     if (type && STREQ (type, "linux")) {
e76f14
-      printf ("mount --bind /dev /sysroot/dev\n");
e76f14
-      printf ("mount --bind /dev/pts /sysroot/dev/pts\n");
e76f14
-      printf ("mount --bind /proc /sysroot/proc\n");
e76f14
-      printf ("mount --bind /sys /sysroot/sys\n");
e76f14
+      printf ("mount --rbind /dev /sysroot/dev\n");
e76f14
+      printf ("mount --rbind /proc /sysroot/proc\n");
e76f14
+      printf ("mount --rbind /sys /sysroot/sys\n");
e76f14
     }
e76f14
 
e76f14
     printf ("\n");
e76f14
-- 
e76f14
1.8.3.1
e76f14