HomeFreeBSD

bsdinstall: stop messing with file descriptors

Description

bsdinstall: stop messing with file descriptors

Throughout the bsdinstall script fd 3 is used by f_dprintf (set through
$TERMINAL_STDOUT_PASSTHRU). By closing file descriptor 3 here, the
final f_dprintf "Installation Completed ... does not work anymore.

By putting the code into a subshell, file descriptors can be edited
without interference with the calling script.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D35113
Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 3 days

Details

Provenance
corvinkAuthored on May 3 2022, 2:00 PM
manuCommitted on May 3 2022, 2:02 PM
Reviewer
emaste
Differential Revision
D35113: bsdinstall: stop messing with file descriptors
Parents
rGd735d604f063: mlx5en(4): Use hard-coded 4K page size for RQ/SQ/CQ.
Branches
Unknown
Tags
Unknown