Path: blob/main/release/tools/basic-cloudinit.conf
34677 views
#!/bin/sh12# Should be enough for base image, image can be resized in needed3export VMSIZE=5g45# 1M config drive should be enough in most cases6export CONFIG_DRIVE=YES7export CONFIG_DRIVE_SIZE=1M89# Packages to install into the image we're creating.10# * firstboot-freebsd-update, to install security updates at first boot.11export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} firstboot-freebsd-update"1213# Set to a list of third-party software to enable in rc.conf(5).14export VM_RC_LIST="${VM_RC_LIST} firstboot_freebsd_update growfs sshd nuageinit"1516vm_extra_pre_umount() {17cat << EOF >> ${DESTDIR}/etc/rc.conf18dumpdev="AUTO"19ifconfig_DEFAULT="SYNCDHCP accept_rtadv"20# RSA host keys are obsolete and also very slow to generate21sshd_rsa_enable="NO"22EOF2324cat << EOF >> ${DESTDIR}/boot/loader.conf25autoboot_delay="-1"26beastie_disable="YES"27loader_logo="none"28console="comconsole,vidconsole"29EOF3031cat << EOF >> ${DESTDIR}/etc/ssh/sshd_config32PasswordAuthentication yes33UsePAM no34EOF3536touch ${DESTDIR}/firstboot3738return 039}404142