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:
@ -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
|
@ -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
|
Reference in New Issue
Block a user