Page MenuHomeFreeBSD

D57481.diff
No OneTemporary

D57481.diff

diff --git a/usr.sbin/bsdinstall/bsdinstall.8 b/usr.sbin/bsdinstall/bsdinstall.8
--- a/usr.sbin/bsdinstall/bsdinstall.8
+++ b/usr.sbin/bsdinstall/bsdinstall.8
@@ -29,7 +29,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 12, 2026
+.Dd June 5, 2026
.Dt BSDINSTALL 8
.Os
.Sh NAME
@@ -621,39 +621,48 @@
filesystem, looks like this:
.Bd -literal -offset indent
PARTITIONS=DEFAULT
-COMPONENTS="base debug"
+export BSDINSTALL_PKG_REPOS_DIR=/usr/freebsd-packages/repos
#!/bin/sh
sysrc ifconfig_DEFAULT=DHCP
sysrc sshd_enable=YES
-pkg install -y puppet
+cp /dist/packages/repos/FreeBSD_install_cdrom.conf /etc/pkg
+export ASSUME_ALWAYS_YES=yes
+pkg install -r FreeBSD_install_cdrom tmux
+rm -f /etc/pkg/FreeBSD_install_cdrom.conf
.Ed
.Pp
For a scripted installation involving a ZFS pool spanning multiple disks,
the script instead looks like this:
.Bd -literal -offset indent
-COMPONENTS="base debug"
+export BSDINSTALL_PKG_REPOS_DIR=/usr/freebsd-packages/repos
export ZFSBOOT_VDEV_TYPE=stripe
export ZFSBOOT_DISKS="ada0 ada1"
export nonInteractive="YES"
#!/bin/sh
-echo "ifconfig_DEFAULT=DHCP" >> /etc/rc.conf
-echo "sshd_enable=YES" >> /etc/rc.conf
-pkg install -y puppet
+sysrc ifconfig_DEFAULT=DHCP
+sysrc sshd_enable=YES
+cp /dist/packages/repos/FreeBSD_install_cdrom.conf /etc/pkg
+export ASSUME_ALWAYS_YES=yes
+pkg install -r FreeBSD_install_cdrom tmux
+rm -f /etc/pkg/FreeBSD_install_cdrom.conf
.Ed
.Pp
To install using traditional distributions sets instead of packages, set
.Ev DISTRIBUTIONS
-to the list of distribution sets to install, like this:
+to the list of distribution sets to install, and tell the installer to attempt
+to acquire an IP address on the first available interface, like this:
.Bd -literal -offset indent
PARTITIONS=DEFAULT
DISTRIBUTIONS="kernel.txz base.txz"
+dhclient $(ifconfig -l ether | awk '{print $1}')
#!/bin/sh
sysrc ifconfig_DEFAULT=DHCP
sysrc sshd_enable=YES
-pkg install -y puppet
+export ASSUME_ALWAYS_YES=yes
+pkg install puppet8
.Ed
.Pp
On
diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script
--- a/usr.sbin/bsdinstall/scripts/script
+++ b/usr.sbin/bsdinstall/scripts/script
@@ -50,7 +50,7 @@
############################################################ GLOBALS
: ${TMPDIR:="/tmp"}
-: ${DISTRIBUTIONS=""}; export DISTRIBUTIONS
+: ${DISTRIBUTIONS:=""}; export DISTRIBUTIONS
#
# Strings that should be moved to an i18n file and loaded with f_include_lang()

File Metadata

Mime Type
text/plain
Expires
Mon, Jul 6, 7:26 AM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34744230
Default Alt Text
D57481.diff (2 KB)

Event Timeline