#!fai KEYMAP="pl_PL.ISO8859-2" HOSTNAME="testscriptinstall" MIRROR="ftp://ftp.pl.freebsd.org/" # RELDIR snapshots or releases RELDIR="snapshots" # 9.3-STABLE, 10.0-STABLE or 11.0-CURRENT when RELDIR="snapshots" # 9.1-RELEASE, 9.2-RELEASE, 9.3-RELEASE and 10.0-RELEASE when RELDIR="releases" RELEASE="11.0-CURRENT" TIMEZONE="Europe/Warsaw" # daemons to run on startup, if not set ssh will enable DAEMONS="sshd dumpdev" DISTRIBUTIONS="kernel.txz base.txz" # name of your network interface (eg. bge0, sl0 etc) INTERFACE="em0" # default YES IPV4="YES" # default YES DHCP="YES" # if DHCP="NO" you can manually set IPV4 for interface $INTERFACE # ADDRESSV4="192.168.1.254" # NETMASK="255.255.255.0" # GWV4="192.168.1.1" # default NO # IPV6="NO" # autoconfiguration for IPV6 for interface $INTERFACE # SLAAC="YES" # if SLAAC="NO" you can manually set IPV6 for interface $INTERFACE # ADDRESSV6="2001:db8:4672:6565:2026:5043:2d42:5344/64" # GWV6="2001:db8:4672:6565::1" # PARTITIONS="ada1 { auto freebsd-ufs /}" # manual resolver configuration: # DOMAIN="example.com" # DNS1="194.204.159.1" # DNS2="8.8.8.8" # DNS3="2001:4860:4860::8888" # DNS4="2001:4860:4860::8844" ####################### Needed manual configuration # hash of root password ROOTPWHASH='$6$Qb2inVrU65.r4Dx5$DaHdU2P1ipFMLZ8J5xJk8DDtC88rE87qo7du6CBvNgyit8RezQ2qkPe83X4KgTCTEtXGrMaMKZ1.W4xg1yz0z/' # root password in plaintext (not recommended) # ROOTPWPLAIN="password" # users in format from adduser -f tool adduser(8) # USERS="/etc/usersconfig" ####################### end manual configuration # if YES run preseed zfsboot installation ZFSBOOT="YES" ######################## ZFSPRESEED START # Virtual Device (vdev) type to create, possible options: # stripe - no redundancy, # mirror - n-Way Mirroring, # raidz1, raidz2, raidz3 - single, double, triple redundant RAID # ZFSBOOT_VDEV_TYPE="stripe" # disks to use # ZFSBOOT_DISKS="ada1" # ######################## Options behind are defaults. ######################## Don't touch if you don't need # Pool name # # ZFSBOOT_POOL_NAME="zroot" # Force 4K sectors? (YES or NO) # # ZFSBOOT_GNOP_4K_FORCE_ALIGN="YES" # Encrypt Disks? (YES or NO) # # ZFSBOOT_GELI_ENCRYPTION="" # Partition scheme (GPT or MBR) # # ZFSBOOT_PARTITION_SCHEME="GPT" # Swap size. Value passed to gpart(8); which supports SI unit suffixes. # # ZFSBOOT_SWAP_SIZE="2g" # Encrypt the swap? (YES or NO) # # ZFSBOOT_SWAP_ENCRYPTION="" # Mirror the swap? (YES or NO) # # ZFSBOOT_SWAP_MIRROR="NO" ######################## OTHERS # Options to use when creating zroot pool # # ZFSBOOT_POOL_CREATE_OPTIONS="-O compress=lz4 -O atime=off" # Name for the boot environment parent dataset # # ZFSBOOT_BEROOT_NAME="ROOT" # Name for the primany boot environment # # ZFSBOOT_BOOTFS_NAME="default" # ZFS datasets for root zpool # # ZFSBOOT_DATASETS=" # /$ZFSBOOT_BEROOT_NAME mountpoint=none # /$ZFSBOOT_BEROOT_NAME/$ZFSBOOT_BOOTFS_NAME mountpoint=/ # /tmp mountpoint=/tmp,exec=on,setuid=off # /usr mountpoint=/usr,canmount=off # /usr/home # NB: /home is a symlink to /usr/home # /usr/ports setuid=off # /usr/src # /var mountpoint=/var # /var/crash exec=off,setuid=off # /var/log exec=off,setuid=off # /var/mail atime=on # /var/tmp setuid=off #" # Path to the geli(8) keyfile used in drive encryption # # ZFSBOOT_GELI_KEY_FILE="/boot/encryption.key" # Create a separate boot pool? (YES or NO) # NB: Automatically set when using geli(8) or MBR # # ZFSBOOT_BOOT_POOL="" # Options to use when creating separate boot pool (if any) # # ZFSBOOT_BOOT_POOL_CREATE_OPTIONS="" # Default name for boot pool when enabled (e.g., geli(8) or MBR) # # ZFSBOOT_BOOT_POOL_NAME="bootpool" # Passphrase used to protect encryption keys !! SENSITIVE INFO !! # # ZFSBOOT_GELI_PW_PASSWORD="" # If interactive and the user has not explicitly chosen a vdev type or disks, # make the user confirm scripted/default choices when proceeding to install. # ZFSBOOT_CONFIRM_LAYOUT="" ZFSBOOT_PRESEED_CONFIRM="YES" ######################## END ZFSPRESEED #!/bin/sh echo "Installation complete, running in host system"