Better check for /tmp being a tmpfs. Closes #1473

This commit is contained in:
Thomas Kaiser 2019-07-23 17:05:55 +02:00 committed by GitHub
parent 6dceae89ce
commit 443b460ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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