From 2ce85003f050d4bb78f82d382ff4daef4bdafed6 Mon Sep 17 00:00:00 2001 From: TommyTran732 Date: Sat, 28 Aug 2021 20:06:54 -0400 Subject: [PATCH] Fix ZRAM config --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 4971ce4..0661bd0 100644 --- a/install.sh +++ b/install.sh @@ -262,6 +262,16 @@ curl https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common- curl https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/raw/master/etc/udev/rules.d/60-ioschedulers.rules > /etc/udev/rules.d/60-ioschedulers.rules chmod 600 /mnt/etc/udev/rules.d/* +# Remove nullok from system-auth +sed -i 's/nullok//g' /mnt/etc/pam.d/system-auth + +# ZRAM configuration +bash -c 'cat > /mnt/etc/systemd/zram-generator.conf' <<-'EOF' +[zram0] +zram-fraction = 1 +max-zram-size = 8192 +EOF + # Randomize Mac Address. bash -c 'cat > /mnt/etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF' [device]