[Libguestfs] [PATCH 1/6] Mount /run as tmpfs inside appliance (workaround for febootstrap's /init)

Hilko Bengen bengen at hilluzination.de
Wed Mar 13 20:13:04 UTC 2013


From: Hilko Bengen <bengen at debian.org>

---
 appliance/init |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/appliance/init b/appliance/init
index dee4efc..6d80996 100755
--- a/appliance/init
+++ b/appliance/init
@@ -18,6 +18,9 @@ mount -t proc /proc /proc
 if [ ! -d /sys ]; then rm -f /sys; fi
 mkdir -p /sys
 mount -t sysfs /sys /sys
+# taken from initramfs-tools/init --Hilko Bengen
+mkdir -p /run
+mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
 mkdir -p /run/lock
 
 # devtmpfs is required since udev 176
-- 
1.7.10.4




More information about the Libguestfs mailing list