Pull request #66: Use packagroupe for default set of package

Merge in ICO/coreos from feat/package-group to master

* commit '5bddcaad7adf75ec63c18f72d8455204edf39cf4':
  feat(coreos-container-image.bbclass): use coreos specific package-group for IMAGE_INSTALL
  feat(coreos-image.bbclass): use coreos specific package-group for IMAGE_INSTALL
This commit is contained in:
Samuel Dolt 2023-03-15 09:52:33 +01:00
commit 8e2e6b35b4
5 changed files with 52 additions and 19 deletions

View File

@ -9,15 +9,9 @@ NO_RECOMMENDATIONS = "1"
# the host, thus we can't use linux-dummy has the default kernel provider. # the host, thus we can't use linux-dummy has the default kernel provider.
IMAGE_CONTAINER_NO_DUMMY = "1" IMAGE_CONTAINER_NO_DUMMY = "1"
COREOS_CONTAINER_IMAGE_BASE_INSTALL = "\
# Only install a reduced set of packages in a container. This correspond to packagegroup-coreos-container \
# a subset of packagegroup-core-boot "
COREOS_CONTAINER_IMAGE_BASE_INSTALL = '\
base-files \
base-passwd \
netbase \
os-release \
'
COREOS_CONTAINER_IMAGE_EXTRA_INSTALL ?= "" COREOS_CONTAINER_IMAGE_EXTRA_INSTALL ?= ""
IMAGE_INSTALL ?= "${COREOS_CONTAINER_IMAGE_BASE_INSTALL} ${COREOS_CONTAINER_IMAGE_EXTRA_INSTALL}" IMAGE_INSTALL ?= "${COREOS_CONTAINER_IMAGE_BASE_INSTALL} ${COREOS_CONTAINER_IMAGE_EXTRA_INSTALL}"

View File

@ -64,17 +64,9 @@ PACKAGE_EXCLUDE_COMPLEMENTARY:append = "${@bb.utils.contains_any('PACKAGE_INSTAL
# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2' # IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
# An error exception would be raised if both image features foo and bar1(or bar2) are included # An error exception would be raised if both image features foo and bar1(or bar2) are included
# packagegroup-core-boot will install the EFI_PROVIDER package if EFI is in Machine
# feature. We use this variable to install more EFI related tools
COREOS_IMAGE_EFI_PROVIDER_EXTRA = " \
${@'efibootguard-tools' if d.getVar('EFI_PROVIDER') == 'efibootguard' else ''} \
"
COREOS_IMAGE_BASE_INSTALL = "\ COREOS_IMAGE_BASE_INSTALL = "\
packagegroup-core-boot \ packagegroup-coreos-boot \
packagegroup-base-extended \ packagegroup-coreos-base \
${@bb.utils.contains("MACHINE_FEATURES", "efi", "${COREOS_IMAGE_EFI_PROVIDER_EXTRA}", "", d)} \
os-release \
" "
COREOS_IMAGE_EXTRA_INSTALL ?= "" COREOS_IMAGE_EXTRA_INSTALL ?= ""

View File

@ -0,0 +1,21 @@
SUMMARY = "Merge machine and distro options to create a basic machine task/package"
PR = "r1"
#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
# packagroup-coreos-boot will ensure that EFI_PROVIDER is installed
# But we want to have Linux user space tools installed as well here
COREOS_IMAGE_EFI_PROVIDER_EXTRA = " \
${@'efibootguard-tools' if d.getVar('EFI_PROVIDER') == 'efibootguard' else ''} \
"
RDEPENDS:${PN} = "\
packagegroup-core-base-extended \
os-release \
${@bb.utils.contains("MACHINE_FEATURES", "efi", "${COREOS_IMAGE_EFI_PROVIDER_EXTRA}", "", d)} \
"

View File

@ -0,0 +1,13 @@
SUMMARY = "Minimal boot requirements"
DESCRIPTION = "The minimal set of packages required to boot CoreOS"
PR = "r1"
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
# As we expect this group to become machine dependants it's already set
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
RDEPENDS:${PN} = "\
packagegroup-core-boot \
"

View File

@ -0,0 +1,13 @@
SUMMARY = "Basic set of package for container"
PR = "r1"
inherit packagegroup
# Only install a reduced set of packages in a container. This correspond to
# a subset of packagegroup-core-boot
RDEPENDS:${PN} = "\
base-files \
base-passwd \
netbase \
os-release \
"