1
Fork 0

Allow already mounted keys in emergency script

This commit is contained in:
Matei Adriel 2024-01-18 02:37:01 +01:00
parent c096d7fb2d
commit 23c628c9b8
No known key found for this signature in database

View file

@ -20,9 +20,13 @@ if [ "$#" != "1" ] && [ "$2" != "install" ] && [ "$2" != "enter" ]; then
exit 1
fi
echo "Mounting keys"
mkdir /hermes
mount /dev/disk/by-uuid/7FE7-CA68 /hermes
if mountpoint -q /hermes; then
echo "Keys already mounted"
else
echo "Mounting keys"
mkdir -p /hermes
mount /dev/disk/by-uuid/7FE7-CA68 /hermes
fi
echo "Running disko"