Finished automatic mount draft

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz]
2020-05-20 15:03:50 +02:00
parent a03a4adc96
commit 596aea41cb
5 changed files with 65 additions and 27 deletions

View File

@@ -2,9 +2,8 @@
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
echo "Mounts encrypted storages"
set_device_mount_and_mapper_paths
set_device_mount_partition_and_mapper_paths
partition_path="$device_path""1"
info "Unlock partition..." &&
sudo cryptsetup luksOpen $partition_path $mapper_name ||
error