From 68edf3e789a433a889b2d94923feaf3821c9b8c4 Mon Sep 17 00:00:00 2001 From: paperbenni Date: Thu, 3 Sep 2020 16:02:55 +0200 Subject: [PATCH] fix swap --- chroot/chroot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chroot/chroot.sh b/chroot/chroot.sh index 5751829..35fb131 100755 --- a/chroot/chroot.sh +++ b/chroot/chroot.sh @@ -25,7 +25,10 @@ if ! [ -e /opt/topinstall ] && ! iroot partswap; then if ! grep -iq manjaro /etc/os-release; then # enable swap systemctl enable systemd-swap - sed -i 's/^swapfc_enabled=.*/swapfc_enabled=1/' /etc/systemd/swap.conf + { + echo "swapfc_enabled=1" + echo "swapfc_max_count=8" + } >> /etc/systemd/swap.conf fi fi fi -- 2.11.0