From: Christian Heller Date: Thu, 3 Sep 2026 07:21:02 +0000 (+0000) Subject: Fix breakage due to incomplete removal of volume-group-name parameter. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/test?a=commitdiff_plain;h=02f432a64e116502703154ec6eec765fe9c420db;p=confplom Fix breakage due to incomplete removal of volume-group-name parameter. --- diff --git a/_lib.sh b/_lib.sh index 7f4bcc3..f9ca73b 100644 --- a/_lib.sh +++ b/_lib.sh @@ -69,7 +69,7 @@ check_new_luksvg() { } check_input_openable_luksvg() { local PARTITION=$1 - check_input_new_luksvg + check_new_luksvg try_quiet cryptsetup isLuks "${PARTITION}"\ || error "${PARTITION} not a LUKS container" } diff --git a/chrooted_command.sh b/chrooted_command.sh index 9b73d46..3002bfd 100755 --- a/chrooted_command.sh +++ b/chrooted_command.sh @@ -2,10 +2,10 @@ . ./_lib.sh # inputs to confirm -usage $# "partition" "volume-group-name" "root-name" "command" +usage $# "partition" "root-name" "command" PARTITION=$1 -NAME_ROOT=$3 -COMMAND=$4 +NAME_ROOT=$2 +COMMAND=$3 # constants derived from changeables PATH_VG_ROOT=$(path_vg "${NAME_LUKSVG}")/${NAME_ROOT} diff --git a/install_debian.sh b/install_debian.sh index f2f801f..0867be4 100755 --- a/install_debian.sh +++ b/install_debian.sh @@ -17,7 +17,7 @@ IDX_BOOT_PARTITION=1 PATH_BOOT_DEVICE="${PATH_DEV}/nvme0n1" # inputs to confirm -usage $# "partition" "volume-group-name" "boot-name" +usage $# "partition" "boot-name" PARTITION=$1 NAME_BOOT=$2 NAME_ROOT="${NAME_BOOT}" @@ -38,7 +38,7 @@ PATH_VG_SWAP=${PATH_VG}/${NAME_SWAP} check_tools cryptsetup debootstrap efibootmgr lvcreate mkfs.ext4 vgs check_input_partition_mountable "${PARTITION}" check_input_openable_luksvg "${PARTITION}" -case "$1" in *[!A-Za-z0-9_.-]*|"") +case "${NAME_BOOT}" in *[!A-Za-z0-9_.-]*|"") error "illegal characters in boot label '${NAME_BOOT}'" ;; esac [ -e "${PATH_EFI}/${NAME_BOOT}" ]\ diff --git a/setup_luksvg.sh b/setup_luksvg.sh index 5071f67..8a651b4 100755 --- a/setup_luksvg.sh +++ b/setup_luksvg.sh @@ -2,7 +2,7 @@ . ./_lib.sh # inputs to confirm -usage $# "partition" "volume-group-name" +usage $# "partition" PARTITION=$1 # constants we might want to change at some point