Files
pawlet_rpi5/ramdisk/init.rpi5.rc
T
oxmc df441e2d0f Add ZRAM swap with configurable size (default 50%)
Adds four fstab.zram.{25p,50p,75p,none} variants copied to vendor/etc.
init.rpi5.rc activates swap at boot_complete using persist.vendor.zram.size.
Adds vm.min_free_kbytes/lowmem_reserve_ratio memory tuning on init.
SELinux: declares vendor_zram_config_prop for persist.vendor.zram.size.
2026-06-09 06:55:11 -07:00

18 lines
466 B
Plaintext

import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
on init
symlink /sdcard /storage/sdcard0
# Memory reserve tuning for RPi 5
write /proc/sys/vm/min_free_kbytes 27386
write /proc/sys/vm/lowmem_reserve_ratio "0 0 0"
on fs
mount_all /vendor/etc/fstab.${ro.hardware} --early
on late-fs
mount_all /vendor/etc/fstab.${ro.hardware} --late
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.zram.${persist.vendor.zram.size}