Formatting
This commit is contained in:
parent
895acd1694
commit
ab01803bc5
@ -127,7 +127,6 @@ log() {
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
get_available_disks() {
|
||||
local available_disks
|
||||
available_disks=()
|
||||
@ -185,7 +184,6 @@ install() {
|
||||
disk_count="$(get_num_of_elems "${available_disks}")"
|
||||
disk_count=$((disk_count - 1))
|
||||
|
||||
|
||||
local disk_selected
|
||||
local install_disk
|
||||
local install_path
|
||||
@ -240,7 +238,8 @@ install() {
|
||||
dd bs=1M if=/dev/zero of=/dev/mapper/to_be_wiped status=progress
|
||||
cryptsetup close to_be_wiped || exit
|
||||
log "info" "Writing new partitions to $(important "${install_disk}")"
|
||||
(echo n
|
||||
(
|
||||
echo n
|
||||
echo
|
||||
echo
|
||||
echo +512M
|
||||
@ -251,7 +250,8 @@ install() {
|
||||
echo
|
||||
echo 8300
|
||||
echo w
|
||||
echo Y) | gdisk "${install_path}" > /dev/null
|
||||
echo Y
|
||||
) | 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}p2" || exit
|
||||
@ -334,4 +334,3 @@ main() {
|
||||
}
|
||||
|
||||
main "${@}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user