Skip to content

Commit cf31148

Browse files
author
Mariya
authored
fix: fix fido warning message being spammed (#4016)
1 parent dee2a84 commit cf31148

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

archinstall/lib/disk/fido.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def fido2_enroll(
112112
pw_inputted = False
113113
pin_inputted = False
114114

115+
info('You might need to touch the FIDO2 device to unlock it if no prompt comes up after 3 seconds')
116+
115117
while worker.is_alive():
116118
if pw_inputted is False:
117119
if bytes(f'please enter current passphrase for disk {dev_path}', 'UTF-8') in worker._trace_log.lower():
@@ -121,5 +123,3 @@ def fido2_enroll(
121123
if bytes('please enter security token pin', 'UTF-8') in worker._trace_log.lower():
122124
worker.write(bytes(getpass.getpass(' '), 'UTF-8'))
123125
pin_inputted = True
124-
125-
info('You might need to touch the FIDO2 device to unlock it if no prompt comes up after 3 seconds')

0 commit comments

Comments
 (0)