[group('System')]
toggle-tpm2:
@/usr/bin/luks-tpm2-autounlock
[group('System')]
powerwash:
FIRST_CONFIRMATION=$(gum choose --header='Warning: This is an experimental feature that will reset this device to its factory state.' "No" "Yes - wipe this machine")
if [[ "$FIRST_CONFIRMATION" != "Yes - wipe this machine" ]]; then
echo "Powerwash cancelled."
exit 0
fi
SECOND_CONFIRMATION=$(gum choose --header='Are you sure?' "No" "Yes - wipe this machine")
if [[ "$SECOND_CONFIRMATION" != "Yes - wipe this machine" ]]; then
echo "Powerwash cancelled."
exit 0
fi
sudo bootc install reset --experimental