Page MenuHomeFreeBSD

bsdinstall: stop messing with file descriptors
ClosedPublic

Authored by corvink on May 3 2022, 5:55 AM.
Tags
None
Referenced Files
F102058598: D35113.diff
Thu, Nov 7, 2:41 AM
Unknown Object (File)
Fri, Nov 1, 12:33 PM
Unknown Object (File)
Oct 4 2024, 11:31 AM
Unknown Object (File)
Oct 4 2024, 7:03 AM
Unknown Object (File)
Oct 3 2024, 9:44 PM
Unknown Object (File)
Oct 3 2024, 2:51 PM
Unknown Object (File)
Oct 1 2024, 1:40 PM
Unknown Object (File)
Oct 1 2024, 12:36 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 Skipped
Unit
Tests Skipped

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 …