Resolved partition selections
This commit is contained in:
parent
89f1600ca0
commit
0480e3ec5a
@ -260,7 +260,7 @@ install() {
|
|||||||
echo w) | gdisk "${install_path}" > /dev/null
|
echo w) | gdisk "${install_path}" > /dev/null
|
||||||
log "info" "Wrote partitions"
|
log "info" "Wrote partitions"
|
||||||
log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")"
|
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}")"
|
log "info" "Requesting opening of $(important "${install_disk}")"
|
||||||
cryptsetup open "${install_path}" cryptroot || exit
|
cryptsetup open "${install_path}" cryptroot || exit
|
||||||
log "info" "Creating file systems..."
|
log "info" "Creating file systems..."
|
||||||
@ -270,7 +270,7 @@ install() {
|
|||||||
|
|
||||||
mount /dev/mapper/cryptroot /mnt
|
mount /dev/mapper/cryptroot /mnt
|
||||||
mkdir /mnt/boot
|
mkdir /mnt/boot
|
||||||
mount "${install_path}" /mnt/boot
|
mount "${install_path}p1" /mnt/boot
|
||||||
local mem_amount
|
local mem_amount
|
||||||
mem_amount="$(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f2)"
|
mem_amount="$(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f2)"
|
||||||
mem_amount=$(( mem_amount * 3/2 / 1000 ))
|
mem_amount=$(( mem_amount * 3/2 / 1000 ))
|
||||||
@ -324,7 +324,7 @@ __EOF__
|
|||||||
done <<< "$(lscpu)"
|
done <<< "$(lscpu)"
|
||||||
yes | pacman -S grub efibootmgr "${ucode}"
|
yes | pacman -S grub efibootmgr "${ucode}"
|
||||||
local disk_uuid
|
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
|
echo disk uuid: $disk_uuid
|
||||||
while read -r; do
|
while read -r; do
|
||||||
if [[ "${REPLY}" = "*GRUB_CMD_LINE*" ]]; then
|
if [[ "${REPLY}" = "*GRUB_CMD_LINE*" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user