[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 1/3] febootstrap/helper/init: make sure /proc is mounted into chroot.



---
 helper/init.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/helper/init.c b/helper/init.c
index 0ca3135..2b5dacf 100644
--- a/helper/init.c
+++ b/helper/init.c
@@ -163,8 +163,10 @@ main ()
 
   chdir ("/");
 
-  /* Run /init from ext2 filesystem. */
+  mount_proc ();
   print_uptime ();
+
+  /* Run /init from ext2 filesystem. */
   execl ("/init", "init", NULL);
   perror ("execl: /init");
 
-- 
1.7.5.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]