From c2479627432db7f2c9c3c37cd7e437775aea8498 Mon Sep 17 00:00:00 2001 From: phga Date: Fri, 11 Mar 2022 21:45:49 +0100 Subject: [PATCH] fix: var name in subscript --- bootstrap.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 7795525..db6c4fb 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -133,8 +133,7 @@ cat < /mnt/root/bootstrap2.sh if [ $ENC == true ]; then sed -i 's/\(^HOOKS.*block\)/\1 encrypt/' /etc/mkinitcpio.conf - ct_entry="swap LABEL=cryptswap /dev/urandom swap,offset=2048,cipher=aes-xts-plain64,size=512" - echo $ct_entry >> /etc/crypttab + echo "swap LABEL=cryptswap /dev/urandom swap,offset=2048,cipher=aes-xts-plain64,size=512" >> /etc/crypttab echo "/dev/mapper/swap none swap defaults 0 0" >> /etc/fstab fi @@ -188,4 +187,4 @@ chmod u+x /mnt/root/bootstrap2.sh arch-chroot /mnt /root/bootstrap2.sh rm /mnt/root/bootstrap2.sh -# reboot +reboot