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)
Fri, Jan 31, 12:23 PM
Unknown Object (File)
Mon, Jan 13, 9:25 PM
Unknown Object (File)
Dec 13 2024, 10:43 PM
Unknown Object (File)
Dec 12 2024, 9:51 PM
Unknown Object (File)
Oct 5 2024, 2:03 AM
Unknown Object (File)
Oct 5 2024, 2:02 AM
Unknown Object (File)
Oct 5 2024, 2:02 AM
Unknown Object (File)
Oct 5 2024, 1:32 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.