|
|
|
@ -3,12 +3,12 @@
|
|
|
|
|
. /root/config/chroot
|
|
|
|
|
|
|
|
|
|
# Specific ubuntu-image chroot configuration goes here.
|
|
|
|
|
# Currently the ubuntu-image IMAGEFORMAT is equivalent to building an image
|
|
|
|
|
# Currently the none IMAGEFORMAT is equivalent to building a rootfs for an image
|
|
|
|
|
# for a physical device, not a cloud instance. For such images we want some
|
|
|
|
|
# special cloud-init configuration that should not be happening for cloud
|
|
|
|
|
# cases. This check should be changed to a per-MODEL/per-SUBARCH check once
|
|
|
|
|
# we support building cloud images via ubuntu-image.
|
|
|
|
|
if [ "$IMAGEFORMAT" == "ubuntu-image" ]; then
|
|
|
|
|
if [ "$IMAGEFORMAT" == "none" ]; then
|
|
|
|
|
# If the cloud does not provide a meta-data service this should be run
|
|
|
|
|
# This will setup a nocloud datasource on the boot partition.
|
|
|
|
|
# This is the default behavior for our ubuntu-image built preinstalled
|
|
|
|
|