From 443b460ad8e0812dd2d587d240f99e8da2075be3 Mon Sep 17 00:00:00 2001 From: Thomas Kaiser Date: Tue, 23 Jul 2019 17:05:55 +0200 Subject: [PATCH] Better check for /tmp being a tmpfs. Closes #1473 --- packages/bsp/common/usr/lib/armbian/armbian-zram-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-zram-config b/packages/bsp/common/usr/lib/armbian/armbian-zram-config index 321e65ca03..3ad70f22b6 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-zram-config +++ b/packages/bsp/common/usr/lib/armbian/armbian-zram-config @@ -101,7 +101,7 @@ activate_ramlog_partition() { activate_compressed_tmp() { # create /tmp not as tmpfs but zram compressed if no fstab entry exists - grep -q '/tmp' /etc/fstab && return + grep -q '^tmpfs /tmp' /etc/mtab && return tmp_device=$(( ${zram_devices} + 1 )) if [[ -f /sys/block/zram${tmp_device}/comp_algorithm ]]; then