freebsd-src/tools
John Baldwin f63a8c0a09 bsdinstall: Mount /dev and /packages after using the shell to partition disks
Normally after partitions are created by the installer, the 'mount'
script is used to mount the target disk partitions under /mnt.  The
tail end of this script also mounts a couple of additional filesystems
under /mnt so that chrooted programs can work such as devfs and
/packages.

When the "Shell" option is used to permit the user to manually mount
the destination filesystem, the "mount" script is not used as the user
is instructed to mount the target filesystems and construct
/mnt/etc/fstab, etc.  However, this means that the user is responsible
for mounting devfs (which is not included in /etc/fstab) and /packages
as well.  The help message for the "Shell" option doesn't mention
these requirements, so users may not know to do so.  This can lead to
confusing errors as chrooted commands can fail to find needed /dev
entries.  For example, running fwget to fetch wireless firmware fails
because /dev/pci doesn't exist.

To make this less painful for users using this option, split out the
bottom half of the 'mount' script that mounts these non-fstab-related
filesystems into a separate 'mount_aux' script.  Invoke 'mount_aux'
after using "Shell" to create the filesystem to ensure that these
filesystems are always present.

PR:		290901
Reported by:	Peter <freebsd@peterk.org>
Tested by:	Peter <freebsd@peterk.org>
Differential Revision:	https://reviews.freebsd.org/D53770
2025-12-08 16:33:30 -05:00
..
boot boot/universe.sh: toggle LOADER_BIOS_TEXTONLY 2025-09-16 00:38:56 +03:00
bsdbox bsdbox: use paths relative to SRCTOP instead of .CURDIR 2025-04-20 22:45:02 -05:00
build bsdinstall: Mount /dev and /packages after using the shell to partition disks 2025-12-08 16:33:30 -05:00
bus_space Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
coccinelle pseudofs: return errors from pfs_create_*() 2025-09-03 21:08:52 -05:00
debugscripts Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
diag tools/diag/prtblknos: fix build 2025-05-27 15:12:04 -08:00
ifnet convert_ifapi: handle the special case of getting interface name 2025-05-28 15:31:53 +08:00
kerneldoc random: remove hifn(4) 2025-10-28 16:46:15 -07:00
LibraryReport Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua Remove $FreeBSD$: one-line lua tag 2023-08-16 11:55:34 -06:00
pkgbase Remove $FreeBSD$: one-line lua tag 2023-08-16 11:55:34 -06:00
regression tools/regression/priv: Don't call setgroups() with the effective GID 2025-09-17 14:16:08 +02:00
sched Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
test stress2: syzkaller87 fixed by ebc17879f0 2025-11-22 10:20:05 +01:00
tools locale: make install Unicode 17.0.0/CLDR 48 2025-12-08 18:44:21 +00:00
uma/smrstress machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
install.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
make_libdeps.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
README Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
tinder.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00

This directory tree contains tools used for the maintenance and
testing of FreeBSD.  There is no toplevel Makefile structure since
these tools are not meant to be built as part of the standard system,
though there may be individual Makefiles in some of the subdirs.

Please read the README files in the subdirs for further information.