Fixed the ZFS config on freebsd 15

This commit is contained in:
2026-08-27 23:45:09 -04:00
parent bed8f3f87b
commit 7f4aae922d
2 changed files with 17 additions and 4 deletions
+16 -3
View File
@@ -7,10 +7,18 @@ KEYMAP="us.kbd"
HOSTNAME="freebsd"
DISTRIBUTIONS="kernel.txz base.txz"
# FreeBSD Distribution Mirror
export BSDINSTALL_DISTSITE="http://download.freebsd.org/ftp/releases/amd64/15.1-CURRENT"
# Guided ZFS Installation Parameters
ZFSBOOT_DISKS="da0"
ZFSBOOT_VDEV_TYPE="stripe"
ZFSBOOT_CONFIRM_POOL_CREATE="YES"
export nonInteractive="YES"
export ZFSBOOT_POOL_NAME="zroot"
export ZFSBOOT_DISKS="da0"
export ZFSBOOT_VDEV_TYPE="stripe"
export ZFSBOOT_BOOT_METHOD="UEFI"
export ZFSBOOT_PARTITION_SCHEME="GPT"
export ZFSBOOT_SWAP_SIZE="2g"
export ZFSBOOT_CONFIRM_POOL_CREATE="0"
# Timezone Configuration (US/Eastern)
TIMEZONE="America/New_York"
@@ -28,6 +36,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
# Set Root Password ('packer')
echo "packer" | pw usermod root -h 0