1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00

Fix ZRAM config

This commit is contained in:
TommyTran732 2021-08-28 20:06:54 -04:00 committed by tommytran732
parent 8293476125
commit 2ce85003f0
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -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]