a36001613d7c399546537ca36873a632c9c04833 — Alex David 10 months ago 6c2eab1
Replace fallocate with dd for swap in init script

fallocate seems to be failing despite using ext3 filesystem? Possibly an
issue with luks
1 files changed, 2 insertions(+), 2 deletions(-)

M archlinux/setup/init
M archlinux/setup/init => archlinux/setup/init +2 -2
@@ 72,9 72,9 @@ mkdir /mnt/boot
mount "${PARTITIONS[1]}" /mnt/boot

ask SWAPSIZE "Swapfile size (e.g. 4G)"
ask SWAPSIZE "Swapfile size in MB (e.g. 4000)"
mkdir /mnt/var
fallocate -l "$SWAPSIZE" /mnt/var/swap
dd if=/dev/zero of=/mnt/var/swap count="$SWAPSIZE" bs=1MiB
chmod 600 /mnt/var/swap
mkswap /mnt/var/swap