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

MFC after:	2 weeks
This commit is contained in:
delphij 2015-02-27 19:13:13 +00:00
parent 201fc1be73
commit 139773cf3f

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) {