From d640c3be2819a9c7524ee8d5978433a69276cc9e Mon Sep 17 00:00:00 2001 From: UndeadDevel <30495439+UndeadDevel@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:04:34 +0000 Subject: [PATCH] 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 --- initrd/bin/oem-factory-reset | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index ceb268a9..71769f2d 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -1148,8 +1148,8 @@ fi if [ -n "$luks_new_Disk_Recovery_Key_desired" -a -n "$luks_new_Disk_Recovery_Key_passphrase_desired" ]; then #Reencryption of disk, disk recovery key and Disk Recovery Key passphrase change is requested - luks_reencrypt luks_change_passphrase + luks_reencrypt elif [ -n "$luks_new_Disk_Recovery_Key_desired" -a -z "$luks_new_Disk_Recovery_Key_passphrase_desired" ]; then #Reencryption of disk was requested but not passphrase change luks_reencrypt