From b899f22ed63986b820a6eafdd93947a12c6042fd Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Aug 2021 20:23:20 -0400 Subject: alsvid3: Enlarge swap file to 16 GiB --- (limited to 'hosts/alsvid3/postinst') diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 6765395..dbe436f 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -4,7 +4,7 @@ # mkswap needs to be given the full path to the swap file including the # root file system's mount point, or else this false error happens: # mkswap: error: /var/swap is mounted; will not make swapspace -fallocate -l 12GiB "${target}/var/swap" || return 1 +fallocate -l 16GiB "${target}/var/swap" || return 1 chmod 0600 "${target}/var/swap" || return 1 mkswap "${target}/var/swap" || return 1 printf 'vm.swappiness = 10\n' >"${target}/etc/sysctl.d/vm-swappiness.conf" -- cgit v0.9.1