mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
release: basic-cloudinit improve default image
- Add the firstboot-freebsd-update package, as long as we do not have pkgbase, this is needed - Support SLAAC by default to complement DHCPv4 (use SYNCDHP instead) Signed-off-by: Jose Luis Duran <jlduran@gmail.com> (cherry picked from commit 120740221fd4a4577e63e6c279f9873cabe449d0)
This commit is contained in:
parent
e573007af2
commit
62cd7d538d
1 changed files with 8 additions and 5 deletions
|
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
|
||||
# Should be enough for base image, image can be resized in needed
|
||||
export VMSIZE=5g
|
||||
|
|
@ -9,13 +7,17 @@ export VMSIZE=5g
|
|||
export CONFIG_DRIVE=YES
|
||||
export CONFIG_DRIVE_SIZE=1M
|
||||
|
||||
# Packages to install into the image we're creating.
|
||||
# * firstboot-freebsd-update, to install security updates at first boot.
|
||||
export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} firstboot-freebsd-update"
|
||||
|
||||
# Set to a list of third-party software to enable in rc.conf(5).
|
||||
export VM_RC_LIST="sshd growfs nuageinit"
|
||||
export VM_RC_LIST="${VM_RC_LIST} firstboot_freebsd_update growfs sshd nuageinit"
|
||||
|
||||
vm_extra_pre_umount() {
|
||||
cat << EOF >> ${DESTDIR}/etc/rc.conf
|
||||
dumpdev="AUTO"
|
||||
ifconfig_DEFAULT="DHCP"
|
||||
ifconfig_DEFAULT="SYNCDHCP accept_rtadv"
|
||||
sshd_enable="YES"
|
||||
EOF
|
||||
|
||||
|
|
@ -25,7 +27,8 @@ beastie_disable="YES"
|
|||
loader_logo="none"
|
||||
console="comconsole,vidconsole"
|
||||
EOF
|
||||
cat <<EOF >> ${DESTDIR}/etc/ssh/sshd_config
|
||||
|
||||
cat << EOF >> ${DESTDIR}/etc/ssh/sshd_config
|
||||
PasswordAuthentication yes
|
||||
UsePAM no
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Reference in a new issue