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.
This commit is contained in:
Richard W.M. Jones
2016-03-24 10:46:31 +00:00
parent 0024e5a13e
commit 72fd0531ab

View File

@@ -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");