1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

Add var zram system and preperation for r/w FS overlay system

This commit is contained in:
j1nx
2021-03-11 09:29:17 +01:00
parent 5712beb181
commit 95984efb37
5 changed files with 44 additions and 9 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=OVOS ZRAM var
DefaultDependencies=no
Requires=zram-var.service
After=zram-var.service
Before=umount.target
Conflicts=umount.target
[Mount]
What=/dev/zram2
Where=/var
Type=ext4
Options=nobarrier
[Install]
WantedBy=local-fs.target

View File

@ -0,0 +1,15 @@
[Unit]
Description=OVOS ZRAM var
DefaultDependencies=no
Before=var.mount
RefuseManualStart=true
RefuseManualStop=true
[Service]
Type=oneshot
ExecStart=/usr/libexec/ovos-zram -t fs -m var -s 32M
RemainAfterExit=true
StandardOutput=null
[Install]
WantedBy=ovos-zram.target