From 0fb1a614f74e837eae17a695cb94828afa24693c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 23 Nov 2021 19:17:20 +0100 Subject: fstab: T3990: mount tmpfs on /var/tmp to get clean FS on reboots --- components/9990-fstab.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components') 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 -- cgit v1.2.3