Create EFI dir before Booting
This commit is contained in:
parent
2e39a6302e
commit
2315d8851f
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ sleep 2
|
||||||
if [ $encryption -eq 1 ]; then
|
if [ $encryption -eq 1 ]; then
|
||||||
echo "Creating Encrypted Root Partition"
|
echo "Creating Encrypted Root Partition"
|
||||||
read -s -r -p "Please Enter the Encryption Passhprase: " lukspw
|
read -s -r -p "Please Enter the Encryption Passhprase: " lukspw
|
||||||
|
echo ""
|
||||||
read -s -r -p "Please Verify the Encryption Passhprase: " lukspw2
|
read -s -r -p "Please Verify the Encryption Passhprase: " lukspw2
|
||||||
[ "$lukspw" != "$lukspw2" ] && echo "Passphrases don't match!" && exit 1
|
[ "$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}" -
|
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
|
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
|
chattr +C /mnt/var/log /mnt/var/cache/pacman/pkg
|
||||||
if [[ "${systype}" == "x86_64-efi" ]]; then
|
if [[ "${systype}" == "x86_64-efi" ]]; then
|
||||||
|
mkdir -p /mnt/boot/efi
|
||||||
mount "${part_esp}" /mnt/boot/efi
|
mount "${part_esp}" /mnt/boot/efi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue