diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-23 19:17:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-11-23 19:17:20 +0100 |
commit | 0fb1a614f74e837eae17a695cb94828afa24693c (patch) | |
tree | e03a888bb60f73fd0f97ef8165dc8e07091fd5e4 | |
parent | d03cc7d659df8ad0ba880cc719c8ad0e3a6746a6 (diff) | |
download | live-boot-0fb1a614f74e837eae17a695cb94828afa24693c.tar.gz live-boot-0fb1a614f74e837eae17a695cb94828afa24693c.zip |
fstab: T3990: mount tmpfs on /var/tmp to get clean FS on reboots
-rwxr-xr-x | components/9990-fstab.sh | 5 |
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 |