diff --git a/archinstall.sh b/archinstall.sh index 3514196..837d8a0 100755 --- a/archinstall.sh +++ b/archinstall.sh @@ -14,6 +14,7 @@ function show_help() { echo " -m Console Keymap to use (default: de)" echo " -t Timezone to use (default: Europe/Berlin)" echo " -h Set the Target Hostname" + echo " -s 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"