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)
Feb 4 2024, 2:53 PM
Unknown Object (File)
Jan 4 2024, 5:24 PM
Unknown Object (File)
Dec 22 2023, 10:06 PM
Unknown Object (File)
Dec 16 2023, 2:41 PM
Unknown Object (File)
Dec 16 2023, 2:40 PM
Unknown Object (File)
Nov 29 2023, 4:36 AM
Unknown Object (File)
Nov 24 2023, 12:19 AM
Unknown Object (File)
Nov 11 2023, 1:44 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.