summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-23 19:17:20 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-23 19:17:20 +0100
commit0fb1a614f74e837eae17a695cb94828afa24693c (patch)
treee03a888bb60f73fd0f97ef8165dc8e07091fd5e4
parentd03cc7d659df8ad0ba880cc719c8ad0e3a6746a6 (diff)
downloadlive-boot-0fb1a614f74e837eae17a695cb94828afa24693c.tar.gz
live-boot-0fb1a614f74e837eae17a695cb94828afa24693c.zip
fstab: T3990: mount tmpfs on /var/tmp to get clean FS on reboots
-rwxr-xr-xcomponents/9990-fstab.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/9990-fstab.sh b/components/9990-fstab.sh
index c79aa42..8753327 100755
--- a/components/9990-fstab.sh
+++ b/components/9990-fstab.sh
@@ -25,6 +25,11 @@ Fstab ()
echo "tmpfs /tmp tmpfs nosuid,nodev 0 0" >> /root/etc/fstab
fi
+ if ! grep -qs "^tmpfs /var/tmp" /root/etc/fstab
+ then
+ echo "tmpfs /var/tmp tmpfs nosuid,nodev,size=25M 0 0" >> /root/etc/fstab
+ fi
+
if [ -z "${NOFASTBOOT}" ]
then
touch root/fastboot