Page MenuHomeFreeBSD

release/tools/vminage.subr: switch zfs dataset from /usr/home to /home
ClosedPublic

Authored by karels on May 15 2023, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 14, 2:02 PM
Unknown Object (File)
Thu, Mar 14, 2:01 PM
Unknown Object (File)
Thu, Mar 14, 2:01 PM
Unknown Object (File)
Mon, Mar 11, 12:54 AM
Unknown Object (File)
Feb 22 2024, 1:53 PM
Unknown Object (File)
Jan 24 2024, 12:09 AM
Unknown Object (File)
Jan 22 2024, 4:46 PM
Unknown Object (File)
Jan 3 2024, 6:33 PM
Subscribers

Details

Reviewers
markj
Summary

Change the vmimage script for zfs to create /home as a dataset
rather than /usr/home, ala pending change to bsdinstall.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51503
Build 48394: arc lint + arc unit

Event Timeline

release/tools/vmimage.subr
196
karels added inline comments.
release/tools/vmimage.subr
196

Oops, thanks!

This change seems to work; /home is mounted from zroot/home, and /usr/home does not exist. /home has no contents, but that is presumably expected.

I noted that the raw image is about 21 GiB, a bit larger than the requested size of 20G.

This change seems to work; /home is mounted from zroot/home, and /usr/home does not exist. /home has no contents, but that is presumably expected.

Yes, a fresh image wouldn't have any users with a home directory installed, and root's is /root.

I noted that the raw image is about 21 GiB, a bit larger than the requested size of 20G.

Might be that the size specifies the root filesystem size, whereas the image includes bootcode and an ESP.

This revision is now accepted and ready to land.May 15 2023, 6:08 PM

I noted that the raw image is about 21 GiB, a bit larger than the requested size of 20G.

Might be that the size specifies the root filesystem size, whereas the image includes bootcode and an ESP.

Yes, I checked the partitions; zfs is 20 GB, then there is 1 GB swap, plus misc.

Closed by commit rGd3c32c80a16b: release/tools/vmimage.subr: switch zfs dataset from /usr/home to /home (authored by karels).