Page MenuHomeFreeBSD

bsdinstall: implement timezone with bsddialog
Needs ReviewPublic

Authored by khorben_defora.org on Apr 7 2024, 5:31 PM.
Tags
None
Referenced Files
F85216251: D44670.diff
Mon, Jun 3, 5:30 AM
Unknown Object (File)
Fri, May 31, 1:26 PM
Unknown Object (File)
Tue, May 28, 8:47 PM
Unknown Object (File)
Mon, May 27, 5:54 AM
Unknown Object (File)
Mon, May 27, 2:09 AM
Unknown Object (File)
Sun, May 26, 4:10 AM
Unknown Object (File)
Sat, May 25, 7:22 AM
Unknown Object (File)
Sun, May 19, 5:58 AM
Subscribers

Details

Summary

This effectively imports most of the timezone script from bsdconfig to bsdinstall. This allows:

  • invoking bsddialog(1) in line with bsdinstall(8)
  • keeping the backtitle consistent with that of the installer
  • eventually, direct support for graphical mode

Sponsored by: The FreeBSD Foundation

Test Plan
# bsdinstall finalconfig
# bsdinstall timezone

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Why do we need a copy of this code rather than just tweaking bsdconfig to support this?

Why do we need a copy of this code rather than just tweaking bsdconfig to support this?

My initial changes drifted a lot more from the original code of bsdconfig, like replacing every occurence of $DIALOG_BACKTITLE with $OSNAME Installer. I have tried to minimize the changes to the bare minimum for this series of reviews, and to restrict the changes to usr.sbin/bsdinstall for clarity.

However I can look into creating a different version of this replacement of timezone with some tweaking in bsdconfig instead.