summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-08-23 20:23:20 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-08-23 20:23:20 (EDT)
commitb899f22ed63986b820a6eafdd93947a12c6042fd (patch)
tree9f3828997039336a1173a6d9e6e313bb62a4b456
parent03187a29d7760bf7a4bef4a5283a5291e7484c8c (diff)
downloadpc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.zip
pc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.tar.gz
pc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.tar.bz2
alsvid3: Enlarge swap file to 16 GiB
-rw-r--r--hosts/alsvid3/postinst2
1 files changed, 1 insertions, 1 deletions
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"