-y is not valid when specifying the pw

This commit is contained in:
fenris 2021-12-09 10:01:37 +01:00
parent 7da033e05b
commit d4f517c84a
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ else
mount -t ext4 ${DISK}3 /mnt
elif [[ "${FS}" == "luks" ]]; then
mkfs.vfat -F32 -n "EFIBOOT" ${DISK}2
echo -n "${luks_password}" | cryptsetup -y -v luksFormat ${DISK}3 -
echo -n "${luks_password}" | cryptsetup -v luksFormat ${DISK}3 -
echo -n "${luks_password}" | cryptsetup open ${DISK}3 ROOT -
mkfs.btrfs -L ROOT /dev/mapper/ROOT
mount -t btrfs /dev/mapper/ROOT /mnt