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

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



From: Hilko Bengen <bengen 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


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