Skip to content

Instantly share code, notes, and snippets.

@rc5hack
Last active December 21, 2015 04:29
Show Gist options
  • Save rc5hack/6249760 to your computer and use it in GitHub Desktop.
Save rc5hack/6249760 to your computer and use it in GitHub Desktop.
Auto-install config for FreeBSD
# install.cfg: auto-install config for FreeBSD sysinstall(8)
# @see /usr/src/usr.sbin/sysinstall/install.cfg
###################################################################################
debug=yes
nonInteractive=yes
#TODO: make some swap
disk=ad0
partition=all
bootManager=boot
diskPartitionEditor
ad0s1-1=ufs 0 /
diskLabelEditor
mediaSetCDROM
#distSetMinimum
dists=base manpages catpages GENERIC
distSetCustom
installCommit
###################################################################################
# устанавливается некоторый пароль, чтобы потом корректно отработала смена пароля
command=/bin/echo 12345678 | /usr/sbin/pw usermod root -h 0
system
# эта команда не выключает виртуальную машину, а просто отмонтирует диски
command=/sbin/shutdown -p now '>>handy shutdown by install.cfg<<'
system
command=/bin/sleep 600
system
###################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment