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

Install script does not install all dependencies #28

Closed bitinerant closed 3 years ago

bitinerant commented 4 years ago

On Ubuntu server for Raspberry Pi, two additional packages are needed. Here is the patch:

diff --git a/install.sh b/install.sh
index c553e2e..b4d4b24 100755
--- a/install.sh
+++ b/install.sh
@@ -4,7 +4,7 @@ systemctl -q is-active zram-config  && { echo "ERROR: zram-config service is sti
 [ "$(id -u)" -eq 0 ] || { echo "You need to be ROOT (sudo can be used)"; exit 1; }
 [ -d /usr/local/bin/zram-config ] && { echo "zram-config is already installed, uninstall first"; exit 1; }

-apt-get -y install libattr1-dev
+apt-get -y install libattr1-dev make gcc
 if grep -q "buster" /etc/os-release
 then
        git clone https://github.com/StuartIanNaylor/overlayfs-tools -b Arch
StuartIanNaylor commented 3 years ago

If you check the branches there is an arch branch with the old