Proper partitions

This commit is contained in:
Price Hiller 2021-11-25 05:12:04 -06:00
parent 9d794b66d6
commit 2529c5d251

View File

@ -262,10 +262,10 @@ install() {
log "info" "Wrote partitions"
log "info" "Encrypting $(important "${install_disk}"), if you are prompted type $(important "YES")"
cryptsetup -y -v luksFormat "${install_path}p2" || exit
log "info" "Requesting opening of $(important "${install_disk}")"
cryptsetup open "${install_path}" cryptroot || exit
log "info" "Requesting opening of $(important "${install_disk}p2")"
cryptsetup open "${install_path}p2" cryptroot || exit
log "info" "Creating file systems..."
mkdfs.fat -F32 "${install_path}"
mkdfs.fat -F32 "${install_path}p1"
mkfs.ext4 "/dev/mapper/cryptroot"
log "info" "Created file systems"