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