mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user