Ver código fonte

make zram lines create and mount immediate

pull/66/head
StuartIanNaylor 5 anos atrás
pai
commit
e2e1c65c5f
2 arquivos alterados com 2 adições e 4 exclusões
  1. +1
    -3
      log2ram
  2. +1
    -1
      log2ram.service

+ 1
- 3
log2ram Ver arquivo

@@ -69,11 +69,9 @@ case "$1" in
[ -d $HDD_LOG/ ] || mkdir $HDD_LOG/
mount --bind $RAM_LOG/ $HDD_LOG/
mount --make-private $HDD_LOG/
if [ "$ZL2R" = true ]; then
createZramLogDrive
fi
wait_for $HDD_LOG
if [ "$ZL2R" = true ]; then
createZramLogDrive
mount -t ext4 -o nosuid,noexec,nodev,user=log2ram /dev/zram${RAM_DEV} ${RAM_LOG}/
else
mount -t tmpfs -o nosuid,noexec,nodev,mode=0755,size=${SIZE} log2ram $RAM_LOG/


+ 1
- 1
log2ram.service Ver arquivo

@@ -1,7 +1,7 @@
[Unit]
Description=Log2Ram
DefaultDependencies=no
Before=basic.target rsyslog.service syslog.target systemd-journald.service sysinit.target shutdown.target apache2.service
Before=basic.target rsyslog.service syslog.target systemd-journald.service sysinit.target shutdown.target zram-swap-conf.service apache2.service
After=local-fs.target
Conflicts=shutdown.target reboot.target halt.target
RequiresMountsFor=/var/log /var/hdd.log


Carregando…
Cancelar
Salvar