git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use --rbind rather than --bind for bind mounting /dev (to get /dev/pts).
[libguestfs.git]
/
daemon
/
command.c
diff --git
a/daemon/command.c
b/daemon/command.c
index
1a50264
..
1a9bebb
100644
(file)
--- 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.
*/
* 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", "--
r
bind", "/dev", "/sysroot/dev", NULL);
dev_ok = r != -1;
dev_ok = r != -1;
- r = command (NULL, NULL, "mount", "--bind", "/proc", "/sysroot/proc", NULL);
+ r = command (NULL, NULL, "mount", "--
r
bind", "/proc", "/sysroot/proc", NULL);
proc_ok = r != -1;
proc_ok = r != -1;
- r = command (NULL, NULL, "mount", "--bind", "/sys", "/sysroot/sys", NULL);
+ r = command (NULL, NULL, "mount", "--
r
bind", "/sys", "/sysroot/sys", NULL);
sys_ok = r != -1;
CHROOT_IN;
sys_ok = r != -1;
CHROOT_IN;