Remove ramdisk mount system files

This commit is contained in:
j1nx 2021-07-27 20:59:00 +02:00
parent 5d1332e58a
commit 41296ae80b
4 changed files with 2 additions and 35 deletions

View File

@ -1,16 +0,0 @@
[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=rw,nobarrier,strictatime,nosuid,nodev
[Install]
WantedBy=local-fs.target

View File

@ -1,15 +0,0 @@
[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

View File

@ -43,12 +43,10 @@ fi
# Lookup device
if [ "$TYPE" = "swap" ]; then
DEVICE="/dev/zram0"
elif [ "$MOUNT" = "ramdisk" ]; then
DEVICE="/dev/zram1"
elif [ "$MOUNT" = "var" ]; then
DEVICE="/dev/zram2"
DEVICE="/dev/zram1"
#elif [ "$MOUNT" = "tmp" ]; then
# DEVICE="/dev/zram3"
# DEVICE="/dev/zram1"
else
echo "[Error] No device for lookup!"
exit 1