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