Set altroot if the user have specified it via -o altroot.
MFC after: 2 weeks
This commit is contained in:
parent
c2d9c6f035
commit
a51314a22f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279366
@ -834,6 +834,8 @@ zpool_do_create(int argc, char **argv)
|
|||||||
enable_all_pool_feat = B_FALSE;
|
enable_all_pool_feat = B_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (zpool_name_to_prop(optarg) == ZPOOL_PROP_ALTROOT)
|
||||||
|
altroot = propval;
|
||||||
break;
|
break;
|
||||||
case 'O':
|
case 'O':
|
||||||
if ((propval = strchr(optarg, '=')) == NULL) {
|
if ((propval = strchr(optarg, '=')) == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user