summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-05-02 13:58:47 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2015-05-02 13:58:47 +0200
commit1a5fda595ff472975be3c6ea9fe185a1b6b8c743 (patch)
tree2091f7b55770587c2ce4d4a62f91d6f2cc6f1b70 /share
parent320b1ce75e04541613f5e5e70271be6d41bb7c79 (diff)
downloadvyos-live-build-1a5fda595ff472975be3c6ea9fe185a1b6b8c743.tar.gz
vyos-live-build-1a5fda595ff472975be3c6ea9fe185a1b6b8c743.zip
Adding hook to disable tmpfs on /tmp when using sysvinit, previously done by live-config.
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/0050-disable-sysvinit-tmpfs.hook.chroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/hooks/0050-disable-sysvinit-tmpfs.hook.chroot b/share/hooks/0050-disable-sysvinit-tmpfs.hook.chroot
new file mode 100755
index 000000000..37750b36d
--- /dev/null
+++ b/share/hooks/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