diff --git a/http/freebsd-15-installerconfig b/http/freebsd-15-installerconfig index 5ed5874..2321d54 100644 --- a/http/freebsd-15-installerconfig +++ b/http/freebsd-15-installerconfig @@ -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 @@ -65,4 +71,4 @@ chmod 0440 /usr/local/etc/sudoers.d/xadmin sysrc qemu_guest_agent_enable="YES" # Finalize and reboot system -reboot \ No newline at end of file +reboot