diff --git a/opennebula-images/openbsd-build-opennebula-image.sh b/opennebula-images/openbsd-build-opennebula-image.sh index aa67061..266448a 100755 --- a/opennebula-images/openbsd-build-opennebula-image.sh +++ b/opennebula-images/openbsd-build-opennebula-image.sh @@ -121,6 +121,7 @@ chroot /mnt /bin/ksh -e -c "cd /usr/share/relink/kernel/GENERIC.MP; make newbsd; # Update and install utilities. chroot /mnt /usr/sbin/pkg_add $pkg_add_params -u chroot /mnt /usr/sbin/pkg_add $pkg_add_params bash cloud-agent +echo '!/usr/local/libexec/cloud-agent "\$if"' > /mnt/etc/hostname.vio0 # Remove useless kernel object files. This saves about 300MB of space in the final image rm -rf /mnt/usr/share/relink/kernel/GENERIC.MP/