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