More FreeBSD 15 installerconfig fixes

This commit is contained in:
Gregory Ballantine
2026-08-28 14:13:18 -04:00
parent 7f4aae922d
commit 90ee1100ed
+11 -5
View File
@@ -8,7 +8,12 @@ HOSTNAME="freebsd"
DISTRIBUTIONS="kernel.txz base.txz" DISTRIBUTIONS="kernel.txz base.txz"
# FreeBSD Distribution Mirror # FreeBSD Distribution Mirror
export BSDINSTALL_DISTSITE="http://download.freebsd.org/ftp/releases/amd64/15.1-CURRENT" export BSDINSTALL_DISTSITE="http://download.freebsd.org/releases/amd64/15.1-RELEASE"
# 2. Configure networking in the live installer environment BEFORE fetch
IFACE=$(ifconfig -l ether | awk '{print $1}')
ifconfig "$IFACE" up
dhclient "$IFACE"
# Guided ZFS Installation Parameters # Guided ZFS Installation Parameters
export nonInteractive="YES" export nonInteractive="YES"
@@ -36,10 +41,11 @@ bsdinstall_services="sshd local_unbound"
# Network configuration for the installed system # Network configuration for the installed system
echo 'ifconfig_DEFAULT="DHCP"' >> /etc/rc.conf echo 'ifconfig_DEFAULT="DHCP"' >> /etc/rc.conf
cat > /etc/resolv.conf << 'DNS' # Ensure DNS works inside the chroot environment for pkg
nameserver 1.1.1.1 cat << 'EOF' > /etc/resolv.conf
nameserver 1.0.0.1 nameserver 8.8.8.8
DNS nameserver 8.8.4.4
EOF
# Set Root Password ('packer') # Set Root Password ('packer')
echo "packer" | pw usermod root -h 0 echo "packer" | pw usermod root -h 0