Better check for /tmp being a tmpfs. Closes #1473
This commit is contained in:
parent
6dceae89ce
commit
443b460ad8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user