Page MenuHomeFreeBSD

bsdinstall: Make sure chroot filesystems are umounted after use
ClosedPublic

Authored by garga on Nov 18 2016, 1:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 1:34 AM
Unknown Object (File)
Sat, Oct 11, 12:45 AM
Unknown Object (File)
Tue, Oct 7, 4:43 AM
Unknown Object (File)
Thu, Sep 18, 3:14 AM
Unknown Object (File)
Sep 13 2025, 3:33 PM
Unknown Object (File)
Aug 2 2025, 5:09 AM
Unknown Object (File)
Jul 1 2025, 7:30 AM
Unknown Object (File)
Jun 18 2025, 10:57 AM
Subscribers

Details

Summary
  • DISTDIR_IS_UNIONFS is set every time BSDINSTALL_DISTDIR is mounted inside BSDINSTALL_CHROOT. Use this flag to decide if it needs to be umounted
  • BSDINSTALL_CHROOT/dev is mounted when 'bsdinstall mount' is called, there is no need to mount it again when user goes to shell after installation

MFC after: 1 week
Obtained from: pfSense
Sponsored by: Rubicon Communications (Netgate)

Test Plan
  • Start a fresh install
  • Choose "Auto (UFS)"
  • Select a disk, then Entire disk
  • Install system
  • Answer Yes to the question "The installation is now finished. Before exiting the installer, would you like to open a shell in the new system to make any final manual modifications?"
  • You will see /mnt/usr/freebsd-dist still mounted and /mnt/dev mounted twice

Diff Detail

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

Event Timeline

garga retitled this revision from to bsdinstall: Make sure chroot filesystems are umounted after use.
garga updated this object.
garga edited the test plan for this revision. (Show Details)
garga added reviewers: allanjude, loos.
allanjude edited edge metadata.

Please make sure this works for ZFS before committing

This revision is now accepted and ready to land.Feb 8 2017, 4:58 PM
This revision was automatically updated to reflect the committed changes.