xref: /freebsd/release/tools/basic-ci.conf (revision d0b2dbfa)
1#!/bin/sh
2#
3#
4
5# Should be enough for base image, image can be resized in needed
6export VMSIZE=5g
7
8# Set to a list of third-party software to enable in rc.conf(5).
9export VM_RC_LIST="sshd growfs"
10
11vm_extra_pre_umount() {
12	cat << EOF >> ${DESTDIR}/etc/rc.conf
13dumpdev="AUTO"
14ifconfig_DEFAULT="DHCP"
15sshd_enable="YES"
16EOF
17
18	cat << EOF >> ${DESTDIR}/boot/loader.conf
19autoboot_delay="-1"
20beastie_disable="YES"
21loader_logo="none"
22console="comconsole,vidconsole"
23EOF
24    cat <<EOF >> ${DESTDIR}/etc/ssh/sshd_config
25PermitRootLogin yes
26PasswordAuthentication yes
27PermitEmptyPasswords yes
28UsePAM no
29EOF
30
31	touch ${DESTDIR}/firstboot
32
33	return 0
34}
35