From a36001613d7c399546537ca36873a632c9c04833 Mon Sep 17 00:00:00 2001 From: Alex David Date: Sat, 13 Jun 2020 17:57:44 -0700 Subject: [PATCH] Replace fallocate with dd for swap in init script fallocate seems to be failing despite using ext3 filesystem? Possibly an issue with luks --- archlinux/setup/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archlinux/setup/init b/archlinux/setup/init index 1d609c5..561fe99 100644 --- a/archlinux/setup/init +++ b/archlinux/setup/init @@ -72,9 +72,9 @@ mkdir /mnt/boot mount "${PARTITIONS[1]}" /mnt/boot section "CREATING SWAPFILE" -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 -- 2.30.2