Page MenuHomeFreeBSD

bsdinstall: stop messing with file descriptors
ClosedPublic

Authored by corvink on May 3 2022, 5:55 AM.
Tags
None
Referenced Files
F112883720: D35113.diff
Sun, Mar 23, 11:34 PM
Unknown Object (File)
Feb 21 2025, 10:55 PM
Unknown Object (File)
Feb 3 2025, 11:50 AM
Unknown Object (File)
Jan 27 2025, 12:42 AM
Unknown Object (File)
Jan 26 2025, 12:40 AM
Unknown Object (File)
Jan 24 2025, 11:35 AM
Unknown Object (File)
Jan 24 2025, 7:43 AM
Unknown Object (File)
Jan 23 2025, 5:50 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 3 2022, 7:20 AM

This should have a
Fixes 40923b0c81 "Fix scripted installation from media without local distfiles."
I'll do that when commiting.

Hello re@
This breaks scripted install for 13.1
Should this be a candidate for another RC ?

This revision was automatically updated to reflect the committed changes.
In D35113#795883, @manu wrote:

… This breaks scripted install for 13.1 …

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266802#c6 for 1f7746d (2022-10-25):

… should probably be merged into releng/13.1 …