Skip to content

Commit ac9b69f

Browse files
committed
move the reset command to after the user prompt
this ensures resets are performed after the user has determined things are ready to proceed Signed-off-by: Zen <[email protected]>
1 parent 51d9f2c commit ac9b69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ugrd/crypto/cryptsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ def _open_crypt_dev(self, name: str, parameters: dict) -> list[str]:
518518
f'einfo "($i/$retries)[{name}] Running key command: {key_command}"',
519519
f"if ! {key_command} > /run/ugrd/key_data; then",
520520
f" ewarn 'Failed to run key command: {key_command}'",
521-
f" {reset_command}" if reset_command else "",
522521
" prompt_user 'Press space to retry'" if not self["cryptsetup_autoretry"] else "",
522+
f" {reset_command}" if reset_command else "",
523523
" continue",
524524
"fi",
525525
]

0 commit comments

Comments
 (0)