diff options
author | Brian Behlendorf <[email protected]> | 2016-05-05 09:27:55 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-05 09:27:55 -0700 |
commit | 3ac2794cbf7eb6ae76311701ac755fc39616c8ac (patch) | |
tree | 53eb6467fd42df8e97c074241b33a6a3bc0a7a11 /cmd | |
parent | 498056ab1e8b9cf9d124b75d72e24a097bac5b90 (diff) |
OpenZFS 5669 - altroot not set in zpool create
5669 altroot not set in zpool create when specified with -o
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: George Wilson <[email protected]>
Approved by: Dan McDonald <[email protected]>
Ported-by: Brian Behlendorf <[email protected]>
OpenZFS-issue: https://www.illumos.org/issues/5669
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c423721
Closes #4594
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zpool/zpool_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 0c48805d1..50a332c6f 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -919,6 +919,8 @@ zpool_do_create(int argc, char **argv) enable_all_pool_feat = B_FALSE; } } + if (zpool_name_to_prop(optarg) == ZPOOL_PROP_ALTROOT) + altroot = propval; break; case 'O': if ((propval = strchr(optarg, '=')) == NULL) { |