aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/scripts/time
Commit message (Collapse)AuthorAgeFilesLines
* bsdinstall: skip tzsetup UTC questionEd Maste2024-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | During installation bsdinstall asks (via tzsetup): > Is this machine's CMOS clock set to UTC? If it is set to local time, > or you don't know, please choose NO here! Most operating systems, except for Windows, use UTC in the hardware real-time clock by default. This question from tzsetup is presumably intended to aid in dual-boot-with-Windows configurations, but these represent a fraction of all FreeBSD installs. Rather than asking this question on every install just default to UTC. Users who want to dual-boot Windows can create /etc/wall_cmos_clock. We can look at making this smarter in the future. Reviewed by: bapt, brooks, brd, cy, 0mp, ngie Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45569
* bsdinstall: restore --calendarAlfonso S. Siciliano2023-10-111-1/+1
| | | | | Restore --calendar to select a date because bsddialog(1) >= 0.4 provides a calendar dialog.
* bsdinstall: avoid conflicts with fd 3Lars Kellogg-Stedman2023-09-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Throughout the bsdinstall script fd 3 is used by f_dprintf (set through $TERMINAL_STDOUT_PASSTHRU). In several places in the bsdinstalls scripts, we use fd 3 to juggle stdout when calling out to other tools, which can cause the installer to fail with a "Bad file descriptor" error when f_dprintf attempts to use it. This commit replaces all constructs like this: exec 3>&1 SOME_VARIABLE=$(some command 2>&1 1>&3) exec 3>&- With: exec 5>&1 SOME_VARIABLE=$(some command 2>&1 1>&5) exec 5>&- PR: 273148 Reviewed by: corvink Fixes: 1f7746d81f53447ac15cc99395bb714d4dd0a4da ("bsdinstall: stop messing with file descriptors") MFC after: 1 week
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* bsdinstall: allow whitelabeling the scriptsBrad Davis2022-05-241-2/+5
| | | | | | Approved by: allanjude, asiciliano Differential Revision: https://reviews.freebsd.org/D35197 Sponsored by: Rubicon Communications, LLC ("Netgate")
* bsdinstall time: Revert dialog titleAlfonso S. Siciliano2022-03-251-2/+2
| | | | | | | | | Revert dialog title like before dialog(1) replacement 0e5c72c3cc5471dfa8cb42b018d623b1ef15dbe8. Reported by: jrtc27 Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34647
* bsdinstall time: Replace dialog with bsddialogAlfonso S. Siciliano2022-03-231-7/+7
| | | | | | | | | Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility, 'dialog --calendar' is replaced by 'bsddialog --datebox' with same features but different User Interface. Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34583
* bsdinstall: restore time selection screenYuri Pankov2021-04-191-2/+2
| | | | | | | | | | | Apparently new dialog does not like the height of 2 for the timebox widget, use 0 (minimum size) instead. Do the same for calendar widget as it does not change the appearance and to prevent possible future surprises. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D29720
* Make the new 'set date and time' dialog default to skipAllan Jude2016-07-141-0/+2
| | | | | | | | X-MFC-With: 302790 Requested by: nwhitehorn Notes: svn path=/head/; revision=302795
* bsdinstall: Prompt user to set the date and time after selecting timezoneAllan Jude2016-07-131-0/+36
| | | | | | | | | | | | Not having the correct date and time makes many PKI based things not work In 10 and 11, it can mean that Unbound, ntpd, and sshd won't start Submitted by: des (original patch) MFC after: 7 days Notes: svn path=/head/; revision=302790
* Import bsdinstall. This is meant to be (eventually in conjunction withNathan Whitehorn2011-02-181-0/+29
pc-sysinstall) a replacement for sysinstall in the 9.0 release and beyond. Currently supported platforms are sparc64, pc98, i386, amd64, powerpc, and powerpc64. Integration into the build system will occur in the coming weeks. Merging with pc-sysinstall will use this code as a frontend, while temporarily retaining the interactive partition editor here. This work will be done in parallel with improvements on this code and release integration. Thanks to all who have provided testing and comments! Notes: svn path=/head/; revision=218799