<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/bsdinstall/scripts/netconfig_ipv6, 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-02-09T18:13:47Z</updated>
<entry>
<title>bsdinstall: Add new Auto option to netconfig interface selection dialog</title>
<updated>2024-02-09T18:13:47Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2024-02-09T18:13:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c994f226bbd3c0762e3c642515fef5f9d5589493'/>
<id>urn:sha1:c994f226bbd3c0762e3c642515fef5f9d5589493</id>
<content type='text'>
This changes the OK / Cancel buttons into Auto / Manual / Cancel, with
Auto being the default. Manual behaves like OK used to, i.e. presents a
series of dialogs asking exactly how to configure the interface, and
Cancel is unchanged, exiting with exit code 1. Auto will attempt to
configure IPv4+DHCP and IPv6+SLAAC with no interaction, failing only if
neither can be configured, thereby supporting all of IPv4-only,
IPv6-only and dual-stack environments. If at least one DNS server is
provided, it will also skip asking for DNS settings, otherwise it will
act like Manual mode for the purposes of DNS settings and prompt. For a
standard dual-stack environment this cuts down the number of netconfig
dialogs from 6 (interface, IPv4, DHCP, IPv6, SLAAC, DNS) to just the
first one.

Reviewed by:	brooks
Differential Revision:	https://reviews.freebsd.org/D43731
</content>
</entry>
<entry>
<title>bsdinstall: Fix broken netconfig persistence for installed system</title>
<updated>2024-02-03T22:50:47Z</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2024-02-03T22:50:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1e75e61d5c2c34ddaf7bfbdba02e00670f9bf231'/>
<id>urn:sha1:1e75e61d5c2c34ddaf7bfbdba02e00670f9bf231</id>
<content type='text'>
The replacement of echo &gt;&gt; with sysrc -f used sysrc key value, which
means "read variables key and value" and thus did nothing useful (and in
fact emitted errors to the log about neither existing). Instead use the
correct sysrc key=value form so the installed system comes back up with
working networking.

Fixes:	60b37735f305 ("bsdinstall netconfig: avoid duplicate entries in rc.conf")
</content>
</entry>
<entry>
<title>bsdinstall netconfig: avoid duplicate entries in rc.conf</title>
<updated>2023-10-13T16:45:54Z</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2023-10-13T15:45:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=60b37735f305e72e67695ead029e59ea29b2bc29'/>
<id>urn:sha1:60b37735f305e72e67695ead029e59ea29b2bc29</id>
<content type='text'>
This uses sysrc to write and update configuration variables in the
temporary configuration file for network access, ._rc.conf.net. This
replaces the previous mechanism, which was simply appending new values
as they were updated.

PR:		212396
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42194
</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 netconfig_ipv6: Replace dialog with bsddialog</title>
<updated>2022-05-21T16:04:28Z</updated>
<author>
<name>Alfonso S. Siciliano</name>
<email>asiciliano@FreeBSD.org</email>
</author>
<published>2022-05-21T16:02:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=58c63d5e37cb3a04355b63e853dfdc145e77cb09'/>
<id>urn:sha1:58c63d5e37cb3a04355b63e853dfdc145e77cb09</id>
<content type='text'>
Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility.

Reviewed by:		bapt
Differential Revision:	https://reviews.freebsd.org/D35270
</content>
</entry>
<entry>
<title>bsdinstall: remove EOL whitespace</title>
<updated>2017-07-18T23:35:19Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-07-18T23:35:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9acc90414602a7f00776746f0c560019c868ca29'/>
<id>urn:sha1:9acc90414602a7f00776746f0c560019c868ca29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Produce meaningful exit code</title>
<updated>2015-09-11T21:08:46Z</updated>
<author>
<name>Devin Teske</name>
<email>dteske@FreeBSD.org</email>
</author>
<published>2015-09-11T21:08:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5e1ed71e4f39cfa73f80aa84f94c0d4dc618df46'/>
<id>urn:sha1:5e1ed71e4f39cfa73f80aa84f94c0d4dc618df46</id>
<content type='text'>
MFC after:	3 days
X-MFC-to:	stable/10
</content>
</entry>
<entry>
<title>A series of changes tested together as a whole:</title>
<updated>2013-11-08T09:57:03Z</updated>
<author>
<name>Devin Teske</name>
<email>dteske@FreeBSD.org</email>
</author>
<published>2013-11-08T09:57:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc4a673f89b9c5d4eb0be86cf4206a6b09fd2ca3'/>
<id>urn:sha1:bc4a673f89b9c5d4eb0be86cf4206a6b09fd2ca3</id>
<content type='text'>
+ Add a `-D FILE" command-line option for overriding the path to the
  bsdinstall log file (BSDINSTALL_LOG env var).
+ Document new `-D FILE' in the man page for bsdinstall.
+ If FILE in `-D FILE' begins with a +, debug output goes to stdout
  (interleaved between dialog(1) invocations/output) as well as to FILE
  (minus the leading + of course).
+ If BSDINSTALL_LOG cannot be written, then debugging is disabled (except in
  the case of a leading + in the pathname, wherein debug will still be
  printed to stdout).
+ Update source code formatting style.
+ Fix a dangling participle ("Begun ..." -&gt; "Began ...")
+ Rewrite the docsinstall script (was necessary to abate direct dependency
  on BSDINSTALL_LOG (instead, use fault-tolerant bsdconfig framework which
  displays appropriate errors for package management).
NB: docsinstall is still using pkg(8) after this change.
+ Add additional debug output for dhclient/rtsol/wpa_cliscan
+ Display script errors in a textbox rather than just on stdout
+ Update many coments.
+ Add new f_show_err() API call (like f_show_msg but changes the dialog
  title to "Error")(see bsdconfig's `common.subr').
+ Add new f_eval_catch() API call for executing a command via eval but not
  before logging the command to debug. Several example cases documented in
  API header for function in bsdconfig's `common.subr'.
+ Fix dialog auto-sizing when launched as an rvalue to a pipe for indirected
  scripts (previously would default to 24x80 sizing in this case, now it can
  autosize to full size even when in a pipe chain).
+ Fix bug in f_snprintf if $format argument began with "-"; printf would
  misinterpret as a flag. (this is in bsdcofig's `strings.subr').
+ Add accompanying f_sprintf() and f_vsprintf() to go along with already
  existing f_snprintf() and f_vsnprintf() (see bsdconfig's `strings.subr').
+ Remove some unnecessary default ZFS datasets from the automatic "zfsboot"
  script. Such as: /usr/ports/distfiles /usr/ports/packages /usr/obj /var/db
  /var/empty /var/mail and /var/run (these can all be created as-needed once
  the system is installed).
+ Remove setuid=off for /usr/home (as discussed from last round of CFT).
+ Fix some i18n string violations in "zfsboot".
+ Bolster debugging output in "zfsboot".
+ Fix some string quoting issues in "zfsboot".
+ Fix some variable scope issues in "zfsboot".
+ Change "Create" to "Install" in "zfsboot" main menu.
+ Increase error checking in "zfsboot" (type-check arguments and such).
+ Add call to "graid destroy" killing automatic metadata (part of the series
  of pedantic destructions we do when bootstrapping a new/naked disk).
+ Make judicious use of new f_eval_catch() in "zfsboot".
+ Fixup some variable names for consistency (zfsboot).
+ Fix an underride syntax parameter expansion folly (zfsboot).
+ Confirm layout if not explicitly chosen when blindly proceeding (no
  longer have to touch anything on the ZFS menu if it scares you, just
  choose the omnibus "Install" option at the top and you'll be prompted to
  select vdev type and disks in the layout confirmation dialog).
+ Change numbered menu items to alphabetic for more efficient navigation.
+ Consolidate vdev selection and disk selection into a single stateful
  menu which performs validation and allows backing out to each previous
  menu as you go deeper.
+ Redesign the ``Last Chance'' dialog (still using the same colors, but
  make it conform to a tolerable width and make disks appear in a block-
  quote style indented region).
+ Fix a bug wherein we used the a lowercase variable name by accident
  (actual variable name declared as all-uppercase) at the time of
  initializing fstab(5) (not believed to cause any issues though).
+ Update the geli setup infobox for each provider being initialized
  (not just at the onset -- since each ``geli init'' causes kernel messages
  to push our infobox off-screen).

Reviewed by:	Allan Jude &lt;freebsd@allanjude.com&gt;
Discussed on:	-current
MFC after:	3 days
</content>
</entry>
</feed>
