Cleanup run

This commit is contained in:
Pascal Vizeli 2018-04-10 22:44:55 +02:00
parent cb0ec59798
commit 08293d02bd
5 changed files with 3 additions and 16 deletions

View File

@ -9,7 +9,7 @@ Hass.io OS based on buildroot
- RAUC for OTA updates
- SquashFS LZ4 for filesystem
- Docker 17.12.1
- ZRAM LZ4 for /tmp, /var, /run, swap
- ZRAM LZ4 for /tmp, /var, swap
## Schemas
![](misc/hassio-os-partition.png?raw=true)

View File

@ -1,3 +1,3 @@
#!/bin/sh
global linux.bootargs.zram="zram.enabled=1 zram.num_devices=4"
global linux.bootargs.zram="zram.enabled=1 zram.num_devices=3"

View File

@ -1 +1 @@
/dev/root / auto ro 0 1
# UNCONFIGURED FSTAB FOR BASE SYSTEM

View File

@ -1,11 +0,0 @@
[Unit]
Description=Hassio ZRAM run
DefaultDependencies=no
[Service]
Type=oneshot
ExecStart=/sbin/hassio-zram -t fs -m run -s 16M
RemainAfterExit=true
[Install]
WantedBy=hassio-zram.target

View File

@ -46,8 +46,6 @@ elif [ "$MOUNT" = "var" ]; then
DEVICE="/dev/zram1"
elif [ "$MOUNT" = "tmp" ]; then
DEVICE="/dev/zram2"
elif [ "$MOUNT" = "run" ]; then
DEVICE="/dev/zram3"
else
echo "[Error] No device for lookup!"
exit 1