diff --git a/debian.sh b/debian.sh index 50900c3..e3cacc5 100755 --- a/debian.sh +++ b/debian.sh @@ -353,11 +353,11 @@ locale() { partitions() { echo echo "Setting Up Partitions....." - printf "$DISK_PASSWORD" | cryptsetup open ${BTRFS} $ROOT_MAPPER + printf "$DISK_PASSWORD" | cryptsetup open ${BTRFS} $ROOT_MAPPER_NAME unmount - if [[ -f "/dev/mapper/$ROOT_MAPPER" ]]; then + if [[ -e "/dev/mapper/$ROOT_MAPPER_NAME" ]]; then echo echo "Formatting $EFI" echo @@ -368,7 +368,7 @@ partitions() { fstab else echo - echo "Aborting Install, mapper device not found!" + echo "Aborting Install, /dev/mapper/$ROOT_MAPPER_NAME not found!" echo echo exit 1