Fix typos
This commit is contained in:
parent
f1476e18a8
commit
cf6476b4aa
1 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,7 @@ declare -rA SUBVOLS_DEFAULT=(
|
||||||
["@snapshots"]=".snapshots"
|
["@snapshots"]=".snapshots"
|
||||||
)
|
)
|
||||||
|
|
||||||
gunction show_help() {
|
function show_help() {
|
||||||
echo "Usage: $0 <disk> [<options>...]"
|
echo "Usage: $0 <disk> [<options>...]"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Positional Arguments:"
|
echo "Positional Arguments:"
|
||||||
|
@ -73,6 +73,7 @@ function prepare_disk() {
|
||||||
#mkfs.vfat -F 32 -n "EFI" "$RootPart"
|
#mkfs.vfat -F 32 -n "EFI" "$RootPart"
|
||||||
#mkfs.btrfs -L "System" "$RootPart"
|
#mkfs.btrfs -L "System" "$RootPart"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_luks() {
|
function create_luks() {
|
||||||
|
@ -166,6 +167,7 @@ function prepare_target() {
|
||||||
|
|
||||||
if [[ "$COMPRESSION" ]]; then
|
if [[ "$COMPRESSION" ]]; then
|
||||||
compopt=",compress=zstd:3"
|
compopt=",compress=zstd:3"
|
||||||
|
fi
|
||||||
|
|
||||||
${cmd} mount -o noatime,space_cache=v2${compopt},ssd,subvol=@ "$rootmount" /mnt/gentoo
|
${cmd} mount -o noatime,space_cache=v2${compopt},ssd,subvol=@ "$rootmount" /mnt/gentoo
|
||||||
|
|
||||||
|
@ -412,7 +414,7 @@ RootDisk="$1"
|
||||||
if [[ ! -b "$RootDisk" ]]; then
|
if [[ ! -b "$RootDisk" ]]; then
|
||||||
echo "ERROR: Invalid parameters. See --help for help"
|
echo "ERROR: Invalid parameters. See --help for help"
|
||||||
exit 3
|
exit 3
|
||||||
elif
|
else
|
||||||
if [[ "$ENCRYPTION" ]]; then
|
if [[ "$ENCRYPTION" ]]; then
|
||||||
diskdev="${RootDisk##*/}"
|
diskdev="${RootDisk##*/}"
|
||||||
if [[ "$diskdev" =~ ^nvme.* ]]; then
|
if [[ "$diskdev" =~ ^nvme.* ]]; then
|
||||||
|
|
Loading…
Reference in a new issue