Skip to content

Commit 472e5f2

Browse files
szaimenenoch85
andauthored
tpm2-unlock: make it possible to execute it again (#2692)
Signed-off-by: Simon L. <[email protected]> Co-authored-by: Daniel Hansson <[email protected]>
1 parent 6eeb21d commit 472e5f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

not-supported/tpm2-unlock.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ root_check
2222
# Check if already installed
2323
if is_this_installed clevis-luks || is_this_installed clevis-tpm2 || is_this_installed clevis-initramfs
2424
then
25-
msg_box "It seems like clevis-luks is already installed.\nThis script can unfortunately not run twice."
26-
exit 1
25+
msg_box "It seems like clevis-luks is already installed. We are trying to do the configuration again."
2726
else
2827
# Ask for installation
2928
install_popup "$SCRIPT_NAME"
@@ -99,7 +98,7 @@ PASSWORD=$(input_box_flow "Please enter a new password that will secure your GRU
9998
GRUB_PASS="$(echo -e "$PASSWORD\n$PASSWORD" | grub-mkpasswd-pbkdf2 | grep -oP 'grub\.pbkdf2\.sha512\.10000\..*')"
10099
if [ -n "${PASSWORD##grub.pbkdf2.sha512.10000.}" ]
101100
then
102-
cat << GRUB_CONF >> /etc/grub.d/40_custom
101+
cat << GRUB_CONF > /etc/grub.d/40_custom
103102
104103
# Password-protect GRUB
105104
set superusers="grub"

0 commit comments

Comments
 (0)