diff options
author | Patrick 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) |
commit | b899f22ed63986b820a6eafdd93947a12c6042fd (patch) | |
tree | 9f3828997039336a1173a6d9e6e313bb62a4b456 /hosts/alsvid3/postinst | |
parent | 03187a29d7760bf7a4bef4a5283a5291e7484c8c (diff) | |
download | pc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.zip pc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.tar.gz pc-inst-b899f22ed63986b820a6eafdd93947a12c6042fd.tar.bz2 |
alsvid3: Enlarge swap file to 16 GiB
Diffstat (limited to 'hosts/alsvid3/postinst')
-rw-r--r-- | hosts/alsvid3/postinst | 2 |
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" |