summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2021-02-12 13:06:44 -0600
committerKyle K <kylek389@gmail.com>2021-02-12 13:06:44 -0600
commit139442d1b6b9e8787e163bdcbbec8b367a3f9e90 (patch)
treed8573eee04734d498d1ac7edd428fad3a51a0737 /install.sh
parent9f9a1495dd54589613a144ef89a018b6195a1226 (diff)
downloadgentoox-139442d1b6b9e8787e163bdcbbec8b367a3f9e90.tar.gz
gentoox-139442d1b6b9e8787e163bdcbbec8b367a3f9e90.tar.bz2
gentoox-139442d1b6b9e8787e163bdcbbec8b367a3f9e90.zip
more wip
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