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

Add ZRAM ramdisk support

This commit is contained in:
j1nx
2021-03-02 17:01:39 +01:00
parent 364d8be816
commit ad5b3114db
4 changed files with 39 additions and 4 deletions

View File

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

View File

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