ecdye / zram-config

A complete zram-config utility for swap, directories, and logs to reduce SD, NAND and eMMC block wear.
MIT License
412 stars 53 forks source link

Fix zram not being applied if system hangs and minor improvements #40

Closed ferferga closed 3 years ago

ferferga commented 3 years ago

If power for my raspberry pi stops and I boot my system again, the zram-device-list file will not be deleted and will be there when the system boots up again, preventing zram from starting. When that happens I need to reboot again, following the first boot performed when the power was cut.

I also fixed some spaces in the zram-config file and added gcc and make as dependencies needed for building overlayfs in the install script.

StuartIanNaylor commented 3 years ago

Ok actually it wasn't me who implemented this and my fault for trying to accommodate others.

During the coming week I will revert that amendment as didn't really like the idea at the time.

ferferga commented 3 years ago

@StuartIanNaylor Shall I close the PR then?

StuartIanNaylor commented 3 years ago

I am just going to move to /tmp and do a clean up just bear with me :)