Error uninstalling ZRAM

On my RASPBERRY I am using ZRAM.
After some time I decided to stop using ZRAM, and selected in the OPENHABIAN-CONFIG–>30 System Settings–>Uninstall ZRAM
I received the following error message:

A not supported option was selected (probably a programming error): " | Uninstall ZRAM"
ZRAM uninstall error messages

How can I stop using ZRAM ?

I dug into openhabian-config and noticed that the uninstall for zram can be done manual using the following:

service zram-config stop
systemctl disable zram-config
rm /etc/systemd/system/zram-config.service
rm /usr/local/bin/zram-config
rm /etc/ztab
rm /etc/logrotate.d/zram-config

echo "zram-config is uninstalled, removing the uninstaller in progress"
rm -rf /usr/local/share/zram-config
rm -rf /usr/local/lib/zram-config
echo "##### Reboot isn't needed #####"

Running as root (sudo) :slight_smile:

Probably the call between the menu and the script is …out-of-sync.

Right, a patch is on it’s way.
Any particular reason to uninstall ZRAM?
Have you checked back with the latest update of ZRAM status - Tutorials & Examples - openHAB Community

1 Like

Markus,

The reason for me to stop using ZRAM is the fact that the usage can cause corruption.
But after reading the article, you pointed me to, I see that only logging is managed in RAM, so no real data is affected when an inproper shutdown should occur. Also database corruption, as I am using InfluxDB, is not a danger.
As I have a dedicated raspberry 4B with 4GB of RAM, the usage of ZRAM could be reconsidered.
Thanks for clearifying the ZRAM feature to me.

1 Like