<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/bsdinstall/scripts/time, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-11-12T19:49:04Z</updated>
<entry>
<title>bsdinstall: skip tzsetup UTC question</title>
<updated>2024-11-12T19:49:04Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-06-12T15:33:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d9ff965b554840cfc0791f96623f6cf5795d40d'/>
<id>urn:sha1:2d9ff965b554840cfc0791f96623f6cf5795d40d</id>
<content type='text'>
During installation bsdinstall asks (via tzsetup):

&gt; Is this machine's CMOS clock set to UTC?  If it is set to local time,
&gt; 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
</content>
</entry>
<entry>
<title>bsdinstall: restore --calendar</title>
<updated>2023-10-11T13:48:53Z</updated>
<author>
<name>Alfonso S. Siciliano</name>
<email>asiciliano@FreeBSD.org</email>
</author>
<published>2023-10-11T13:48:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=160ccec84c1cc6de309f44173352f68c8665a119'/>
<id>urn:sha1:160ccec84c1cc6de309f44173352f68c8665a119</id>
<content type='text'>
Restore --calendar to select a date because bsddialog(1) &gt;= 0.4
provides a calendar dialog.
</content>
</entry>
<entry>
<title>bsdinstall: avoid conflicts with fd 3</title>
<updated>2023-09-21T06:41:48Z</updated>
<author>
<name>Lars Kellogg-Stedman</name>
<email>lars@oddbit.com</email>
</author>
<published>2023-08-15T15:44:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0e249d32c780ee8240fe8b3b8144078a8eec41f'/>
<id>urn:sha1:c0e249d32c780ee8240fe8b3b8144078a8eec41f</id>
<content type='text'>
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&gt;&amp;1
    SOME_VARIABLE=$(some command 2&gt;&amp;1 1&gt;&amp;3)
    exec 3&gt;&amp;-

With:

    exec 5&gt;&amp;1
    SOME_VARIABLE=$(some command 2&gt;&amp;1 1&gt;&amp;5)
    exec 5&gt;&amp;-

PR:			273148
Reviewed by:		corvink
Fixes:			1f7746d81f53447ac15cc99395bb714d4dd0a4da ("bsdinstall: stop messing with file descriptors")
MFC after:		1 week
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>bsdinstall: allow whitelabeling the scripts</title>
<updated>2022-05-24T15:49:06Z</updated>
<author>
<name>Brad Davis</name>
<email>brd@FreeBSD.org</email>
</author>
<published>2022-05-24T15:49:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cc42ef5328963ee55c3305b136e9a86145f24594'/>
<id>urn:sha1:cc42ef5328963ee55c3305b136e9a86145f24594</id>
<content type='text'>
Approved by:		allanjude, asiciliano
Differential Revision:	https://reviews.freebsd.org/D35197
Sponsored by:		Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>bsdinstall time: Revert dialog title</title>
<updated>2022-03-25T23:52:21Z</updated>
<author>
<name>Alfonso S. Siciliano</name>
<email>asiciliano@FreeBSD.org</email>
</author>
<published>2022-03-25T23:50:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=268c47b9ac5de10c86260d071ba93ed89459ecfb'/>
<id>urn:sha1:268c47b9ac5de10c86260d071ba93ed89459ecfb</id>
<content type='text'>
Revert dialog title like before dialog(1) replacement
0e5c72c3cc5471dfa8cb42b018d623b1ef15dbe8.

Reported by:		jrtc27
Approved by:		bapt (mentor)
Differential Revision:	https://reviews.freebsd.org/D34647
</content>
</entry>
<entry>
<title>bsdinstall time: Replace dialog with bsddialog</title>
<updated>2022-03-23T15:56:37Z</updated>
<author>
<name>Alfonso S. Siciliano</name>
<email>asiciliano@FreeBSD.org</email>
</author>
<published>2022-03-23T15:52:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0e5c72c3cc5471dfa8cb42b018d623b1ef15dbe8'/>
<id>urn:sha1:0e5c72c3cc5471dfa8cb42b018d623b1ef15dbe8</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>bsdinstall: restore time selection screen</title>
<updated>2021-04-19T18:39:59Z</updated>
<author>
<name>Yuri Pankov</name>
<email>yuripv@FreeBSD.org</email>
</author>
<published>2021-04-19T18:39:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3f0c032fb8b2d2ee8d491fa95108a3790541662'/>
<id>urn:sha1:d3f0c032fb8b2d2ee8d491fa95108a3790541662</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Make the new 'set date and time' dialog default to skip</title>
<updated>2016-07-14T00:41:19Z</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2016-07-14T00:41:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d4e5caaf7df4259f759441514dc686c5136d98fd'/>
<id>urn:sha1:d4e5caaf7df4259f759441514dc686c5136d98fd</id>
<content type='text'>
X-MFC-With:	302790
Requested by:	nwhitehorn
</content>
</entry>
<entry>
<title>bsdinstall: Prompt user to set the date and time after selecting timezone</title>
<updated>2016-07-13T23:49:45Z</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2016-07-13T23:49:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=09c4000afebba1062abe3634893968fea74b78a6'/>
<id>urn:sha1:09c4000afebba1062abe3634893968fea74b78a6</id>
<content type='text'>
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
</content>
</entry>
</feed>
