coreos/layers/meta-belden-coreos/classes/coreos-image.bbclass

50 lines
1.8 KiB
Plaintext

# Class used to generate image based on Belden CoreOS
# We don't ihnerit from core-image, so not all core-image specific IMAGE_FEATURE
# are available. Only theses one are supported:
FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug"
FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile"
FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}"
MACHINE_HWCODECS ??= ""
# These image features are CoreOS specifics:
#
# ssh-server: provide a ssh server, on core-image, two ssh server are supported
# and the features ssh-server-dropbear and ssh-server-openssh are
# available. For CoreOS, we only support dropbear
FEATURE_PACKAGES_ssh-server = "packagegroup-core-ssh-dropbear"
# We can handle feature that conflicts with either:
# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2'
# Including image feature foo would replace the image features bar1 and bar2
# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
# An error exception would be raised if both image features foo and bar1(or bar2) are included
COREOS_IMAGE_BASE_INSTALL = '\
packagegroup-core-boot \
packagegroup-base-extended \
\
${COREOS_IMAGE_EXTRA_INSTALL} \
'
COREOS_IMAGE_EXTRA_INSTALL ?= ""
IMAGE_INSTALL ?= "${COREOS_IMAGE_BASE_INSTALL} ${COREOS_IMAGE_EXTRA_INSTALL}"
# IMAGE_LINGUAS default value is set in image.bbclass, so we need to change it
# before ihneriting the image class, as we don't need to install custom locales
IMAGE_LINGUAS ?= " "
inherit image
# Enable some feature by default
# TODO. Commented out becaus it caused Problems. Need proper fixing.
# IMAGE_FEATURES += "read-only-rootfs"
# Add some extra space, as done in core-image-minimal
IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}"