Bsdinstall and unattended ZFS installation
Victor Sudakov
vas at mpeks.tomsk.su
Mon Jul 18 11:15:30 UTC 2016
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 at sibptus.tomsk.ru
More information about the freebsd-sysinstall
mailing list