ubuntu: /proc can be a symlink
authorRichard Jones <rjones@redhat.com>
Mon, 13 Sep 2010 13:44:05 +0000 (14:44 +0100)
committerRichard Jones <rjones@redhat.com>
Mon, 13 Sep 2010 13:44:05 +0000 (14:44 +0100)
If it's a symlink then the succeeding mount commnd will fail.
Remove it and make a /proc directory.

appliance/init

index cda6453..bd93d15 100755 (executable)
@@ -7,6 +7,7 @@ export PATH
 
 mkdir -p /sysroot
 
 
 mkdir -p /sysroot
 
+rm -f /proc; mkdir /proc
 mount -t proc /proc /proc
 mount -t sysfs /sys /sys
 
 mount -t proc /proc /proc
 mount -t sysfs /sys /sys