Use Correct Parameter Order in parted
This commit is contained in:
parent
cffb1bb8d3
commit
02f636c117
1 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,7 @@ set -e # Stop on Errors
|
|||
scriptdir="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
function show_help() {
|
||||
echo "$0 -d <device> [options]"
|
||||
echo "$0 -d <device> -h <hostname> [options]"
|
||||
echo " A Semi-Automatic Archlinux Install Script"
|
||||
echo " -d <device> Device to Install to"
|
||||
echo " -k <kernel> Kernel Name to Install (default: linux-zen)"
|
||||
|
@ -13,6 +13,7 @@ function show_help() {
|
|||
echo " -l <locale> Locale to use (default: de_DE)"
|
||||
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 " -b Set System Type to BIOS (default: UEFI)"
|
||||
echo " -c Disable Encryption (default: enabled)"
|
||||
}
|
||||
|
@ -102,7 +103,7 @@ if [[ "${systype}" == "x86_64-efi" ]]; then
|
|||
parted -s "$device" \
|
||||
mklabel gpt \
|
||||
mkpart ESP fat32 1MiB 513MiB \
|
||||
set esp 1 on \
|
||||
set 1 esp on \
|
||||
mkpart arch 512MiB 100%
|
||||
|
||||
part_esp="/dev/disk/by-partlabel/ESP"
|
||||
|
@ -115,7 +116,7 @@ else
|
|||
parted -s "$device" \
|
||||
mklabel gpt \
|
||||
mkpart grub 1MiB 2MiB \
|
||||
set bios_grub 1 on \
|
||||
set 1 bios_grub on \
|
||||
mkpart arch 2MiB 100%
|
||||
|
||||
part_root="/dev/disk/by-partlabel/arch"
|
||||
|
|
Loading…
Reference in a new issue