From 139442d1b6b9e8787e163bdcbbec8b367a3f9e90 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Fri, 12 Feb 2021 13:06:44 -0600 Subject: more wip --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 2623884..47df852 100755 --- a/install.sh +++ b/install.sh @@ -197,6 +197,14 @@ echo '#!/bin/bash cpupower frequency-set -g performance' > /etc/local.d/my.start chmod +x /etc/local.d/my.start +touch /swapfile +chattr +C /swapfile +dd if=/dev/zero of=/swapfile count=512 bs=1MiB +chmod 600 /swapfile +mkswap -L MYSWAP /swapfile +echo '/swapfile none swap sw 0 0' >> /etc/fstab +echo 'vm.swappiness=10' >> /etc/sysctl.d/local.conf + yes $rootpassword | passwd root if [[ $username != "gentoox" ]]; then usermod --login $username --move-home --home /home/$username gentoox -- cgit v1.2.3