mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
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 <christian.foerster@mailfence.com>
This commit is contained in:
parent
920f871f9f
commit
d640c3be28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user