diff --git a/gentoo-install.sh b/gentoo-install.sh index bcf152b..ac7528a 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -23,7 +23,7 @@ declare -rA SUBVOLS_DEFAULT=( ["@snapshots"]=".snapshots" ) -gunction show_help() { +function show_help() { echo "Usage: $0 [...]" echo "" echo "Positional Arguments:" @@ -73,6 +73,7 @@ function prepare_disk() { #mkfs.vfat -F 32 -n "EFI" "$RootPart" #mkfs.btrfs -L "System" "$RootPart" fi + fi } function create_luks() { @@ -166,6 +167,7 @@ function prepare_target() { if [[ "$COMPRESSION" ]]; then compopt=",compress=zstd:3" + fi ${cmd} mount -o noatime,space_cache=v2${compopt},ssd,subvol=@ "$rootmount" /mnt/gentoo @@ -412,7 +414,7 @@ RootDisk="$1" if [[ ! -b "$RootDisk" ]]; then echo "ERROR: Invalid parameters. See --help for help" exit 3 -elif +else if [[ "$ENCRYPTION" ]]; then diskdev="${RootDisk##*/}" if [[ "$diskdev" =~ ^nvme.* ]]; then