Bug 207150 - bsdinstall(8): ZFS install fails if zpool name equals to file/directory exists in root
Summary: bsdinstall(8): ZFS install fails if zpool name equals to file/directory exist...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Allan Jude
URL:
Keywords: install
Depends on:
Blocks:
 
Reported: 2016-02-13 11:41 UTC by gabor.radnai
Modified: 2022-10-13 17:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gabor.radnai 2016-02-13 11:41:50 UTC
bsdinstall(8): ZFS install fails if one pick a name for root zpool which exists as file or directory in /.

To repeat:
1. start bsdinstall
2. Pick zroot name 'sys' for example
3. Eventually untar fails

Suggested resolution is trivial:
If new root zpool name is $zroot then mount zroot as /X$zroot, where X is for example 'root'.

By default bsdinstall creates similar ZFS structure:
NAME                 USED  AVAIL  REFER  MOUNTPOINT
zroot                408M  6.32G    96K  /zroot
zroot/ROOT           406M  6.32G    96K  none
zroot/ROOT/default   406M  6.32G   406M  /

Should be rather if zpool name is 'sys' for example:
NAME                 USED  AVAIL  REFER  MOUNTPOINT
sys                408M  6.32G    96K  /rootsys
sys/ROOT           406M  6.32G    96K  none
sys/ROOT/default   406M  6.32G   406M  /