Make Used HDD Size Selectable
This commit is contained in:
parent
864bdacaed
commit
77267ba766
1 changed files with 5 additions and 2 deletions
|
@ -14,6 +14,7 @@ function show_help() {
|
|||
echo " -m <keymap> Console Keymap to use (default: de)"
|
||||
echo " -t <timezone> Timezone to use (default: Europe/Berlin)"
|
||||
echo " -h <hostname> Set the Target Hostname"
|
||||
echo " -s <hddsize> Only use hddsize for the system partition"
|
||||
echo " -b Set System Type to BIOS (default: UEFI)"
|
||||
echo " -c Disable Encryption (default: enabled)"
|
||||
}
|
||||
|
@ -47,9 +48,10 @@ timezone="Europe/Berlin"
|
|||
systype="x86_64-efi"
|
||||
network=0
|
||||
encryption=1
|
||||
hddsize="100%"
|
||||
|
||||
## Get CLI Options
|
||||
while getopts 'k:d:n:m:l:h:bc?' flag; do
|
||||
while getopts 'k:d:n:m:l:h:s:t:bc?' flag; do
|
||||
case "${flag}" in
|
||||
k) kernel="${OPTARG}" ;;
|
||||
n) case "${OPTARG}" in
|
||||
|
@ -65,6 +67,7 @@ while getopts 'k:d:n:m:l:h:bc?' flag; do
|
|||
b) systype="i386-pc" ;;
|
||||
c) encryption=0 ;;
|
||||
h) hostname="${OPTARG}" ;;
|
||||
s) hddsize="${OPTARG}" ;;
|
||||
?) show_help ;;
|
||||
*) show_help ;;
|
||||
esac
|
||||
|
@ -104,7 +107,7 @@ if [[ "${systype}" == "x86_64-efi" ]]; then
|
|||
mklabel gpt \
|
||||
mkpart ESP fat32 1MiB 513MiB \
|
||||
set 1 esp on \
|
||||
mkpart arch 514MiB 100%
|
||||
mkpart arch 514MiB ${hddsize}
|
||||
|
||||
part_esp="/dev/disk/by-partlabel/ESP"
|
||||
part_root="/dev/disk/by-partlabel/arch"
|
||||
|
|
Loading…
Reference in a new issue