From 1782cb29471bc14b6f0d4e34788a85cb2475cf05 Mon Sep 17 00:00:00 2001 From: Randall Date: Fri, 29 Jul 2022 04:18:03 -0400 Subject: [PATCH] Fixed limits.conf configuration --- chrootInstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index 3378b75..b5e66d6 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -132,7 +132,7 @@ touch /home/"$username"/.ssh/authorized_keys chown -R "$username" /home/"$username"/.ssh # misc configuration -echo -e '* hard memlock 2097152\n* soft memlock 64\n# End of file' > /etc/security/limits.conf # increases hard memlock limit to 2 GiB (useful for some apps, such as rpcs3) +echo -e ""$username" soft memlock 64\n"$username" hard memlock 2097152\n# End of file" > /etc/security/limits.conf # increases hard memlock limit to 2 GiB (useful for some apps, such as rpcs3) mkdir -p /home/"$username"/.gnupg echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input pacman -S neofetch htop cpupower --needed --noconfirm