summaryrefslogtreecommitdiffstats
path: root/daemon/command.c
diff options
context:
space:
mode:
authorCharles Duffy <cduffy@messageone.com>2009-06-04 08:45:04 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-06-04 08:45:04 +0100
commit80e15757879c4cf21e0511c62e57c19efb4aab63 (patch)
tree03ac46cbc9265befe632d5a09913fa632996a1f1 /daemon/command.c
parent9d6de016ccd932c18001c08c371bf83c6dbff8f0 (diff)
downloadlibguestfs-80e15757879c4cf21e0511c62e57c19efb4aab63.tar.gz
libguestfs-80e15757879c4cf21e0511c62e57c19efb4aab63.tar.xz
libguestfs-80e15757879c4cf21e0511c62e57c19efb4aab63.zip
Use --rbind rather than --bind for bind mounting /dev (to get /dev/pts).
Diffstat (limited to 'daemon/command.c')
-rw-r--r--daemon/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/command.c b/daemon/command.c
index 1a50264b..1a9bebb6 100644
--- a/daemon/command.c
+++ b/daemon/command.c
@@ -53,11 +53,11 @@ do_command (char * const * const argv)
* We deliberately allow these commands to fail silently, BUT
* if a mount fails, don't unmount the corresponding mount.
*/
- r = command (NULL, NULL, "mount", "--bind", "/dev", "/sysroot/dev", NULL);
+ r = command (NULL, NULL, "mount", "--rbind", "/dev", "/sysroot/dev", NULL);
dev_ok = r != -1;
- r = command (NULL, NULL, "mount", "--bind", "/proc", "/sysroot/proc", NULL);
+ r = command (NULL, NULL, "mount", "--rbind", "/proc", "/sysroot/proc", NULL);
proc_ok = r != -1;
- r = command (NULL, NULL, "mount", "--bind", "/sys", "/sysroot/sys", NULL);
+ r = command (NULL, NULL, "mount", "--rbind", "/sys", "/sysroot/sys", NULL);
sys_ok = r != -1;
CHROOT_IN;