Page MenuHomeFreeBSD

bsdinstall: mount is not needed for the ZFS install case
ClosedPublic

Authored by royger on May 15 2017, 1:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 2:53 PM
Unknown Object (File)
Wed, Apr 10, 4:11 AM
Unknown Object (File)
Sat, Mar 30, 6:20 PM
Unknown Object (File)
Mar 10 2024, 12:09 AM
Unknown Object (File)
Jan 2 2024, 11:43 AM
Unknown Object (File)
Dec 23 2023, 12:11 AM
Unknown Object (File)
Dec 14 2023, 10:45 PM
Unknown Object (File)
Nov 22 2023, 6:50 PM
Subscribers
None

Details

Summary

Because the datasets are already mounted by zfsboot, and the mount script
doesn't know anything about ZFS. Also do not execute the "umount" script for
ZFS for the same reasons.

Sponsored by: Citrix Systems R&D

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Use zpool export instead of zfs unmount -a

I do not know much about bsdinstall scripts but as much as it counts, seems ok for me;)

This revision is now accepted and ready to land.May 18 2017, 4:08 PM
dteske requested changes to this revision.May 18 2017, 10:00 PM
dteske added inline comments.
usr.sbin/bsdinstall/scripts/script
44 ↗(On Diff #28524)

Add here:

#
# Default name of the boot-pool
#
: ${ZFSBOOT_POOL_NAME:=zroot}
64 ↗(On Diff #28524)

Simplify to:

[ -f "$PATH_FSTAB" ] || exit

Note: When exit is not given an argument, it returns the previous exit status (which would be the error-status from the "[ -f ... ]" command to the left of the "or"

66 ↗(On Diff #28524)

Delete this line (see inline comment in CONFIGURATION section)

138 ↗(On Diff #28524)

Delete this line (see inline comment in CONFIGURATION section)

This revision now requires changes to proceed.May 18 2017, 10:00 PM
royger edited edge metadata.

Fix Devin's comments.

royger marked 4 inline comments as done.EditedMay 19 2017, 8:06 AM

Thanks for the review, I've fixed the comments and I would like to push this ASAP, since it will allow me to build FreeBSD install images on the Xen CI loop without any external patches. Long term I think it would be better to add an "unmount" argument to zfsboot, but that can be done later.

Can I also have your opinion on D10736? That's the other one that's required for me.

This revision is now accepted and ready to land.May 19 2017, 5:28 PM
This revision was automatically updated to reflect the committed changes.