summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 8 insertions, 0 deletions
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