mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-10-27 03:19:56 -04:00
Set vm.swappiness=0 if the user opts out of swap
This commit is contained in:
1 parent
1782cb2947
commit
d0bc786421
1 file changed
+2
@@ -155,6 +155,8 @@ if [ "$swap" != 0 ]; then
|
||||
mkswap /mnt/swapfile
|
||||
swapon /mnt/swapfile
|
||||
echo 'vm.swappiness=10' > /mnt/etc/sysctl.d/99-swappiness.conf
|
||||
else
|
||||
echo 'vm.swappiness=0' > /mnt/etc/sysctl.d/99-swappiness.conf
|
||||
fi
|
||||
|
||||
fstabgen -U /mnt >> /mnt/etc/fstab
|
||||
|
||||
Reference in new issue
Block a user