libzfs: zfs_crypto_create() requires a new key by definition: set newkey
This changes the password prompt for new encryption roots from Enter passphrase: Re-enter passphrase: to Enter new passphrase: Re-enter new passphrase: which makes more sense and is more consistent with "new passphrase" now always meaning "come up with something" and plain "passphrase" "remember that thing" Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11866
This commit is contained in:
parent
e568853f96
commit
0fc401a7ef
|
@ -954,7 +954,7 @@ zfs_crypto_create(libzfs_handle_t *hdl, char *parent_name, nvlist_t *props,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = populate_create_encryption_params_nvlists(hdl, NULL,
|
ret = populate_create_encryption_params_nvlists(hdl, NULL,
|
||||||
B_FALSE, keyformat, keylocation, props, &wkeydata,
|
B_TRUE, keyformat, keylocation, props, &wkeydata,
|
||||||
&wkeylen);
|
&wkeylen);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue