Set altroot if the user have specified it via -o altroot.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2015-02-27 19:13:13 +00:00
parent c2d9c6f035
commit a51314a22f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279366

View File

@ -834,6 +834,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) {