fix: var name in subscript
This commit is contained in:
parent
9bae004505
commit
c247962743
@ -133,8 +133,7 @@ cat <<EOF > /mnt/root/bootstrap2.sh
|
|||||||
|
|
||||||
if [ $ENC == true ]; then
|
if [ $ENC == true ]; then
|
||||||
sed -i 's/\(^HOOKS.*block\)/\1 encrypt/' /etc/mkinitcpio.conf
|
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 "swap LABEL=cryptswap /dev/urandom swap,offset=2048,cipher=aes-xts-plain64,size=512" >> /etc/crypttab
|
||||||
echo $ct_entry >> /etc/crypttab
|
|
||||||
echo "/dev/mapper/swap none swap defaults 0 0" >> /etc/fstab
|
echo "/dev/mapper/swap none swap defaults 0 0" >> /etc/fstab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -188,4 +187,4 @@ chmod u+x /mnt/root/bootstrap2.sh
|
|||||||
arch-chroot /mnt /root/bootstrap2.sh
|
arch-chroot /mnt /root/bootstrap2.sh
|
||||||
rm /mnt/root/bootstrap2.sh
|
rm /mnt/root/bootstrap2.sh
|
||||||
|
|
||||||
# reboot
|
reboot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user