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
Unknown Object (File)
Sun, May 19, 5:58 AM
Unknown Object (File)
Thu, May 9, 2:36 PM
Unknown Object (File)
Wed, May 1, 3:59 AM
Unknown Object (File)
Fri, Apr 26, 4:52 AM
Unknown Object (File)
Apr 19 2024, 10:52 PM
Unknown Object (File)
Apr 9 2024, 4:18 PM
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.