xref: /freebsd/release/tools/basic-ci.conf (revision d9cc3d558d00ee7f62dbef2032f099033c91d2a1)
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 nuageinit"
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	metalog_add_data ./boot/loader.conf
25
26    cat <<EOF >> ${DESTDIR}/etc/ssh/sshd_config
27PermitRootLogin yes
28PasswordAuthentication yes
29PermitEmptyPasswords yes
30UsePAM no
31EOF
32
33	return 0
34}
35