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"
# 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
export nonInteractive="YES"
@@ -36,10 +41,11 @@ bsdinstall_services="sshd local_unbound"
# Network configuration for the installed system
echo 'ifconfig_DEFAULT="DHCP"' >> /etc/rc.conf
cat > /etc/resolv.conf << 'DNS'
nameserver 1.1.1.1
nameserver 1.0.0.1
DNS
# Ensure DNS works inside the chroot environment for pkg
cat << 'EOF' > /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
# Set Root Password ('packer')
echo "packer" | pw usermod root -h 0