Create EFI dir before Booting

This commit is contained in:
seiichiro 2021-09-17 16:59:23 +02:00
parent 2e39a6302e
commit 2315d8851f

View file

@ -128,6 +128,7 @@ sleep 2
if [ $encryption -eq 1 ]; then
echo "Creating Encrypted Root Partition"
read -s -r -p "Please Enter the Encryption Passhprase: " lukspw
echo ""
read -s -r -p "Please Verify the Encryption Passhprase: " lukspw2
[ "$lukspw" != "$lukspw2" ] && echo "Passphrases don't match!" && exit 1
echo -n "$lukspw" | cryptsetup luksFormat --type luks1 --cipher aes-xts-plain64 --hash sha512 --key-size 512 "${part_root}" -
@ -159,6 +160,7 @@ mount -o ssd,noatime,space_cache.compress=zstd,autodefrag,discard=async,subvol=@
mount -o ssd,noatime,space_cache.compress=zstd,autodefrag,discard=async,subvol=@portables "${root_dev}" /mnt/var/lib/portables
chattr +C /mnt/var/log /mnt/var/cache/pacman/pkg
if [[ "${systype}" == "x86_64-efi" ]]; then
mkdir -p /mnt/boot/efi
mount "${part_esp}" /mnt/boot/efi
fi