summaryrefslogtreecommitdiffstats
path: root/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot')
-rwxr-xr-xsystem-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot b/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot
new file mode 100755
index 0000000..37750b3
--- /dev/null
+++ b/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Disable tmpfs on /tmp
+
+if [ -e /etc/default/rcS ]
+then
+ sed -i -e 's|^ *RAMTMP=.*|RAMTMP=no|' /etc/default/rcS
+fi