Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 18:15:23 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-sysinstall@freebsd.org
Subject:   Bsdinstall and unattended ZFS installation
Message-ID:  <20160718111523.GA15456@admin.sibptus.transneft.ru>

next in thread | raw e-mail | index | archive | help
Dear Colleagues,

Could you please give me a working example of a bsdinstall script for
an unattended installation on ZFS?

Thanks a lot in advance.

Below is a script I successfully use for unattended UFS installation.


=====================================
# by VAS
#PARTITIONS="da0 MBR { 3G freebsd-ufs /, auto freebsd-swap }"
PARTITIONS="md0 MBR { 3G freebsd-ufs /, auto freebsd-swap }"
DISTRIBUTIONS="kernel.txz base.txz games.txz"

#!/bin/sh
echo "ifconfig_vtnet0=DHCP" >> /etc/rc.conf.local
echo "ifconfig_em0=DHCP" >> /etc/rc.conf.local
echo "sshd_enable=YES" >> /etc/rc.conf.local
echo "hostname=XXXXXXXXXXXXXXXXXXXXXXXXXXXX" >> /etc/rc.conf.local
echo "autoboot_delay=3" >> /boot/loader.conf
echo "setenv HTTP_PROXY http://XXXXXXXXXXXXXXXXXXXXX" >> /etc/csh.cshrc
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

HTTP_PROXY=http://XXXXXXXXXXXXXXXXXXXXX ; export HTTP_PROXY
env ASSUME_ALWAYS_YES=yes pkg install pkg iperf nbtscan fping
tzsetup -s Asia/Krasnoyarsk
sed -i .bak 's%md[0-9]%vtbd0%' /etc/fstab
sed -i .bak 's/Components src world kernel/Components world kernel/' /etc/freebsd-update.conf
# password 12345
chpass -p '$1$yfLwd04g$/rMp740XswFWzMMXxwJfa/' root

=====================================

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160718111523.GA15456>