mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Drop duplicite flag in LUKS2 device reload after reencryption.
Reload operation implicictly requires shared flag anyway and it's added later.
This commit is contained in:
@@ -3101,7 +3101,7 @@ static int reencrypt_teardown_ok(struct crypt_device *cd, struct luks2_hdr *hdr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rh->online) {
|
if (rh->online) {
|
||||||
r = LUKS2_reload(cd, rh->device_name, rh->vks, rh->device_size, CRYPT_ACTIVATE_KEYRING_KEY | CRYPT_ACTIVATE_SHARED);
|
r = LUKS2_reload(cd, rh->device_name, rh->vks, rh->device_size, CRYPT_ACTIVATE_KEYRING_KEY);
|
||||||
if (r)
|
if (r)
|
||||||
log_err(cd, _("Failed to reload device %s."), rh->device_name);
|
log_err(cd, _("Failed to reload device %s."), rh->device_name);
|
||||||
if (!r) {
|
if (!r) {
|
||||||
|
|||||||
Reference in New Issue
Block a user