ubuntu: /proc can be a symlink
[libguestfs.git] / appliance / init
index 90da1cb..bd93d15 100755 (executable)
@@ -7,6 +7,7 @@ export PATH
 
 mkdir -p /sysroot
 
+rm -f /proc; mkdir /proc
 mount -t proc /proc /proc
 mount -t sysfs /sys /sys
 
@@ -71,7 +72,7 @@ for f in /sys/block/[hsv]d*/queue/scheduler; do echo noop > $f; done
 
 # These are useful when debugging.
 if grep -sq guestfs_verbose=1 /proc/cmdline; then
-    ls -l /dev
+    ls -lR /dev
     cat /proc/mounts
     lvm pvs
     lvm vgs
@@ -110,8 +111,8 @@ else
   bash -i
   echo
   echo "virt-rescue: Syncing the disk now before exiting ..."
-  echo "(Don't worry if you see a 'Kernel panic' message below)"
   echo
 fi
 
 sync
+/sbin/reboot -f