|
|
@ -144,7 +144,6 @@ cat <<EOF > /mnt/root/bootstrap2.sh
|
|
|
|
|
|
|
|
|
|
|
|
if [ $ENC == true ]; then
|
|
|
|
if [ $ENC == true ]; then
|
|
|
|
sed -i 's/^HOOKS.*$/$MKINIT_HOOKS/' /etc/mkinitcpio.conf
|
|
|
|
sed -i 's/^HOOKS.*$/$MKINIT_HOOKS/' /etc/mkinitcpio.conf
|
|
|
|
# sed -i 's/\(^HOOKS.*block\)/\1 encrypt/' /etc/mkinitcpio.conf
|
|
|
|
|
|
|
|
echo "swap LABEL=cryptswap /dev/urandom swap,offset=2048,cipher=aes-xts-plain64,size=512" >> /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
|
|
|
|
echo "/dev/mapper/swap none swap defaults 0 0" >> /etc/fstab
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|