Fixed the ZFS config on freebsd 15
This commit is contained in:
@@ -29,7 +29,7 @@ source "proxmox-iso" "freebsd-15" {
|
|||||||
"mdmfs -s 100m md /tmp<enter><wait2s>", # mount a writable /tmp memory disk
|
"mdmfs -s 100m md /tmp<enter><wait2s>", # mount a writable /tmp memory disk
|
||||||
"mdmfs -s 100m md /var/db<enter><wait2s>", # mount a writable /var memory disk
|
"mdmfs -s 100m md /var/db<enter><wait2s>", # mount a writable /var memory disk
|
||||||
"dhclient vtnet0<enter><wait5>", # bring up network
|
"dhclient vtnet0<enter><wait5>", # bring up network
|
||||||
"fetch -o /tmp/instaproxmox_hostllerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig<enter><wait5s>", # grab the installerconfig
|
"fetch -o /tmp/installerconfig http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-15-installerconfig<enter><wait5s>", # grab the installerconfig
|
||||||
"bsdinstall script /tmp/installerconfig<enter>" # execute bsdinstall with fetched config
|
"bsdinstall script /tmp/installerconfig<enter>" # execute bsdinstall with fetched config
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,18 @@ KEYMAP="us.kbd"
|
|||||||
HOSTNAME="freebsd"
|
HOSTNAME="freebsd"
|
||||||
DISTRIBUTIONS="kernel.txz base.txz"
|
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
|
# Guided ZFS Installation Parameters
|
||||||
ZFSBOOT_DISKS="da0"
|
export nonInteractive="YES"
|
||||||
ZFSBOOT_VDEV_TYPE="stripe"
|
export ZFSBOOT_POOL_NAME="zroot"
|
||||||
ZFSBOOT_CONFIRM_POOL_CREATE="YES"
|
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 Configuration (US/Eastern)
|
||||||
TIMEZONE="America/New_York"
|
TIMEZONE="America/New_York"
|
||||||
@@ -28,6 +36,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'
|
||||||
|
nameserver 1.1.1.1
|
||||||
|
nameserver 1.0.0.1
|
||||||
|
DNS
|
||||||
|
|
||||||
# Set Root Password ('packer')
|
# Set Root Password ('packer')
|
||||||
echo "packer" | pw usermod root -h 0
|
echo "packer" | pw usermod root -h 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user