Skip to content

Commit d640c3b

Browse files
committed
Update oem-factory-reset
Change order if user chooses both reencrypt and change passphrase, so that passphrase is changed first. Signed-off-by: Christian Foerster <[email protected]>
1 parent 920f871 commit d640c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

initrd/bin/oem-factory-reset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,8 @@ fi
11481148

11491149
if [ -n "$luks_new_Disk_Recovery_Key_desired" -a -n "$luks_new_Disk_Recovery_Key_passphrase_desired" ]; then
11501150
#Reencryption of disk, disk recovery key and Disk Recovery Key passphrase change is requested
1151-
luks_reencrypt
11521151
luks_change_passphrase
1152+
luks_reencrypt
11531153
elif [ -n "$luks_new_Disk_Recovery_Key_desired" -a -z "$luks_new_Disk_Recovery_Key_passphrase_desired" ]; then
11541154
#Reencryption of disk was requested but not passphrase change
11551155
luks_reencrypt

0 commit comments

Comments
 (0)