Resolved partition selections

This commit is contained in:
Price Hiller 2021-11-25 04:55:22 -06:00
parent 89f1600ca0
commit 0480e3ec5a

View File

@ -260,7 +260,7 @@ install() {
echo w) | gdisk "${install_path}" > /dev/null
log "info" "Wrote partitions"
log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")"
cryptsetup -y -v luksFormat "${install_path}" || exit
cryptsetup -y -v luksFormat "${install_path}p2" || exit
log "info" "Requesting opening of $(important "${install_disk}")"
cryptsetup open "${install_path}" cryptroot || exit
log "info" "Creating file systems..."
@ -270,7 +270,7 @@ install() {
mount /dev/mapper/cryptroot /mnt
mkdir /mnt/boot
mount "${install_path}" /mnt/boot
mount "${install_path}p1" /mnt/boot
local mem_amount
mem_amount="$(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f2)"
mem_amount=$(( mem_amount * 3/2 / 1000 ))
@ -324,7 +324,7 @@ __EOF__
done <<< "$(lscpu)"
yes | pacman -S grub efibootmgr "${ucode}"
local disk_uuid
disk_uuid="$(blkid -s UUID -o value "${install_path}")"
disk_uuid="$(blkid -s UUID -o value "${install_path}p2")"
echo disk uuid: $disk_uuid
while read -r; do
if [[ "${REPLY}" = "*GRUB_CMD_LINE*" ]]; then