mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-28 17:39:44 +01:00
Remove ramdisk mount system files
This commit is contained in:
parent
5d1332e58a
commit
41296ae80b
@ -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
|
|
@ -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
|
|
@ -43,12 +43,10 @@ fi
|
|||||||
# Lookup device
|
# Lookup device
|
||||||
if [ "$TYPE" = "swap" ]; then
|
if [ "$TYPE" = "swap" ]; then
|
||||||
DEVICE="/dev/zram0"
|
DEVICE="/dev/zram0"
|
||||||
elif [ "$MOUNT" = "ramdisk" ]; then
|
|
||||||
DEVICE="/dev/zram1"
|
|
||||||
elif [ "$MOUNT" = "var" ]; then
|
elif [ "$MOUNT" = "var" ]; then
|
||||||
DEVICE="/dev/zram2"
|
DEVICE="/dev/zram1"
|
||||||
#elif [ "$MOUNT" = "tmp" ]; then
|
#elif [ "$MOUNT" = "tmp" ]; then
|
||||||
# DEVICE="/dev/zram3"
|
# DEVICE="/dev/zram1"
|
||||||
else
|
else
|
||||||
echo "[Error] No device for lookup!"
|
echo "[Error] No device for lookup!"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user