Skip to content

Commit

Permalink
fix: luks scripts messaging
Browse files Browse the repository at this point in the history
luks tpm2 auto lock/unlock scripts should not actually reference ujust
since they can be used without it.

if user has found these ujust recipes, it should be obvious what to do
from the ujust list of recipes.

Closes: #326
  • Loading branch information
bsherman committed Nov 2, 2024
1 parent 6321866 commit 8d3c9ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion build/ublue-os-luks/luks-disable-tpm2-autounlock
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ else
fi

echo "TPM2 auto-unlock disabled..."
echo "To reenroll TPM2 auto unlock please run ujust setup-luks-tpm-unlock..."
2 changes: 1 addition & 1 deletion build/ublue-os-luks/luks-enable-tpm2-autounlock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fi
if cryptsetup luksDump "$CRYPT_DISK" | grep systemd-tpm2 > /dev/null; then
KEYSLOT=$(cryptsetup luksDump "$CRYPT_DISK"|grep -A29 systemd-tpm2|grep Keyslot|awk '{print $2}')
echo "TPM2 already present in LUKS Keyslot $KEYSLOT of $CRYPT_DISK."
echo "Remove the existing TPM2 enrollment with ujust remove-luks-tpm2-autounlock"
echo "Remove the existing TPM2 enrollment before trying again."
echo "Exiting..."
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
Expand Down

0 comments on commit 8d3c9ac

Please sign in to comment.