diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-23 20:27:48 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-23 20:27:48 (EDT) |
commit | 839909c966fb7fed7a2fa7e1e7ab7d0818fb9640 (patch) | |
tree | 748d8ade70489d64a029394a141b8561d321d435 /hosts/alsvid3 | |
parent | b899f22ed63986b820a6eafdd93947a12c6042fd (diff) | |
download | pc-inst-839909c966fb7fed7a2fa7e1e7ab7d0818fb9640.zip pc-inst-839909c966fb7fed7a2fa7e1e7ab7d0818fb9640.tar.gz pc-inst-839909c966fb7fed7a2fa7e1e7ab7d0818fb9640.tar.bz2 |
alsvid3: Move swap file to /boot/
Diffstat (limited to 'hosts/alsvid3')
-rw-r--r-- | hosts/alsvid3/postinst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index dbe436f..b8fa975 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -4,15 +4,15 @@ # 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 16GiB "${target}/var/swap" || return 1 -chmod 0600 "${target}/var/swap" || return 1 -mkswap "${target}/var/swap" || return 1 +fallocate -l 16GiB "${target}/boot/swap" || return 1 +chmod 0600 "${target}/boot/swap" || return 1 +mkswap "${target}/boot/swap" || return 1 printf 'vm.swappiness = 10\n' >"${target}/etc/sysctl.d/vm-swappiness.conf" # Hibernation. mkdir -p "${target}/boot/grub/" || return 1 root="UUID=$(blkid -o value -s UUID "${dev}1")" -offset="$(in_target filefrag -v /var/swap | sed -n ' +offset="$(in_target filefrag -v /boot/swap | sed -n ' /physical_offset:/{ n; s/^[ 0-9.]*:[ 0-9.]*: *\([0-9][0-9]*\)...*$/\1/; |