xref: /freebsd/release/tools/basic-ci.conf (revision ea07005137182d6fea2d5cc6967ddaa4a5bdbd5d)
1*ea070051SEmmanuel Vadot#!/bin/sh
2*ea070051SEmmanuel Vadot#
3*ea070051SEmmanuel Vadot# $FreeBSD$
4*ea070051SEmmanuel Vadot#
5*ea070051SEmmanuel Vadot
6*ea070051SEmmanuel Vadot# Should be enough for base image, image can be resized in needed
7*ea070051SEmmanuel Vadotexport VMSIZE=5G
8*ea070051SEmmanuel Vadot
9*ea070051SEmmanuel Vadot# Set to a list of third-party software to enable in rc.conf(5).
10*ea070051SEmmanuel Vadotexport VM_RC_LIST="sshd growfs"
11*ea070051SEmmanuel Vadot
12*ea070051SEmmanuel Vadotvm_extra_pre_umount() {
13*ea070051SEmmanuel Vadot	cat << EOF >> ${DESTDIR}/etc/rc.conf
14*ea070051SEmmanuel Vadotdumpdev="AUTO"
15*ea070051SEmmanuel Vadotifconfig_DEFAULT="DHCP"
16*ea070051SEmmanuel Vadotsshd_enable="YES"
17*ea070051SEmmanuel VadotEOF
18*ea070051SEmmanuel Vadot
19*ea070051SEmmanuel Vadot	cat << EOF >> ${DESTDIR}/boot/loader.conf
20*ea070051SEmmanuel Vadotautoboot_delay="-1"
21*ea070051SEmmanuel Vadotbeastie_disable="YES"
22*ea070051SEmmanuel Vadotloader_logo="none"
23*ea070051SEmmanuel Vadotconsole="comconsole,vidconsole"
24*ea070051SEmmanuel VadotEOF
25*ea070051SEmmanuel Vadot    cat <<EOF >> ${DESTDIR}/etc/ssh/sshd_config
26*ea070051SEmmanuel VadotPermitRootLogin yes
27*ea070051SEmmanuel VadotPasswordAuthentication yes
28*ea070051SEmmanuel VadotPermitEmptyPasswords yes
29*ea070051SEmmanuel VadotUsePAM no
30*ea070051SEmmanuel VadotEOF
31*ea070051SEmmanuel Vadot
32*ea070051SEmmanuel Vadot	touch ${DESTDIR}/firstboot
33*ea070051SEmmanuel Vadot
34*ea070051SEmmanuel Vadot	return 0
35*ea070051SEmmanuel Vadot}
36