diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2021-04-27 08:53:16 +0200 |
---|---|---|
committer | Dan Andresan <Dan.Andresan@enea.com> | 2021-05-26 09:27:23 +0200 |
commit | bee43bc3d4896603e4cb1839f5a4e8c30c771e5c (patch) | |
tree | 5cafa293eec603da92d7682fd90fa8758c8209f3 | |
parent | 20e1f95b49cb2dfb321b770b260b0d82d49fe699 (diff) | |
download | meta-el-nfv-access-bee43bc3d4896603e4cb1839f5a4e8c30c771e5c.tar.gz |
distro conf: require sota.conf.inc for atom, xeon
Depends-on: I658c86f562743a50e5c078899e133e279b96027b
Change-Id: I7165753a5f609ef337fd1f0b450f055a5768059e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rw-r--r-- | conf/distro/eneanfvaccess.conf | 3 | ||||
-rw-r--r-- | conf/template.atom-c3000-debug/local.conf.sample | 11 | ||||
-rw-r--r-- | conf/template.atom-c3000/local.conf.sample | 11 | ||||
-rw-r--r-- | conf/template.xeon-d-debug/local.conf.sample | 11 | ||||
-rw-r--r-- | conf/template.xeon-d/local.conf.sample | 11 | ||||
-rw-r--r-- | images/enea-nfv-access-common.inc | 18 |
6 files changed, 18 insertions, 47 deletions
diff --git a/conf/distro/eneanfvaccess.conf b/conf/distro/eneanfvaccess.conf index 2c81393..3dcec36 100644 --- a/conf/distro/eneanfvaccess.conf +++ b/conf/distro/eneanfvaccess.conf | |||
@@ -7,6 +7,9 @@ DISTRO_VERSION = "${DISTRO_VERSION_MAJOR}${DISTRO_VERSION_MINOR}" | |||
7 | 7 | ||
8 | SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" | 8 | SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" |
9 | 9 | ||
10 | # OSTree integration | ||
11 | require ${@bb.utils.contains('SOTA_MACHINE', '${MACHINE}', 'conf/distro/sota.conf.inc', '', d)} | ||
12 | |||
10 | INHERIT += "distrooverrides" | 13 | INHERIT += "distrooverrides" |
11 | DISTRO_FEATURES_append = " odm efi-secure-boot usrmerge" | 14 | DISTRO_FEATURES_append = " odm efi-secure-boot usrmerge" |
12 | DISTRO_FEATURES_OVERRIDES += "odm efi-secure-boot" | 15 | DISTRO_FEATURES_OVERRIDES += "odm efi-secure-boot" |
diff --git a/conf/template.atom-c3000-debug/local.conf.sample b/conf/template.atom-c3000-debug/local.conf.sample index 60e8955..b96bf48 100644 --- a/conf/template.atom-c3000-debug/local.conf.sample +++ b/conf/template.atom-c3000-debug/local.conf.sample | |||
@@ -155,6 +155,7 @@ EXTRA_IMAGE_FEATURES = " \ | |||
155 | # - 'image-swab' to perform host system intrusion detection | 155 | # - 'image-swab' to perform host system intrusion detection |
156 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink | 156 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink |
157 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended | 157 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended |
158 | # NOTE: image-prelink is removed by sota.conf.inc | ||
158 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" | 159 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" |
159 | 160 | ||
160 | # | 161 | # |
@@ -241,16 +242,6 @@ CONF_VERSION = "1" | |||
241 | 242 | ||
242 | SKIP_META_VIRT_SANITY_CHECK = "1" | 243 | SKIP_META_VIRT_SANITY_CHECK = "1" |
243 | 244 | ||
244 | # | ||
245 | # OSTree integration | ||
246 | # | ||
247 | |||
248 | SOTA_MACHINE ?= "${MACHINE}" | ||
249 | |||
250 | DISTRO_FEATURES_append = " sota" | ||
251 | DISTRO_FEATURES_NATIVE_append = " sota" | ||
252 | INHERIT += " sota" | ||
253 | |||
254 | # Various packages dynamically add users and groups to the system at package | 245 | # Various packages dynamically add users and groups to the system at package |
255 | # install time. For programs that do not care what the uid/gid is of the | 246 | # install time. For programs that do not care what the uid/gid is of the |
256 | # resulting users/groups, the order of the install will determine the final | 247 | # resulting users/groups, the order of the install will determine the final |
diff --git a/conf/template.atom-c3000/local.conf.sample b/conf/template.atom-c3000/local.conf.sample index b015f43..c6cbdba 100644 --- a/conf/template.atom-c3000/local.conf.sample +++ b/conf/template.atom-c3000/local.conf.sample | |||
@@ -152,6 +152,7 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" | |||
152 | # - 'image-swab' to perform host system intrusion detection | 152 | # - 'image-swab' to perform host system intrusion detection |
153 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink | 153 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink |
154 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended | 154 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended |
155 | # NOTE: image-prelink is removed by sota.conf.inc | ||
155 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" | 156 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" |
156 | 157 | ||
157 | # | 158 | # |
@@ -238,16 +239,6 @@ CONF_VERSION = "1" | |||
238 | 239 | ||
239 | SKIP_META_VIRT_SANITY_CHECK = "1" | 240 | SKIP_META_VIRT_SANITY_CHECK = "1" |
240 | 241 | ||
241 | # | ||
242 | # OSTree integration | ||
243 | # | ||
244 | |||
245 | SOTA_MACHINE ?= "${MACHINE}" | ||
246 | |||
247 | DISTRO_FEATURES_append = " sota" | ||
248 | DISTRO_FEATURES_NATIVE_append = " sota" | ||
249 | INHERIT += " sota" | ||
250 | |||
251 | # Various packages dynamically add users and groups to the system at package | 242 | # Various packages dynamically add users and groups to the system at package |
252 | # install time. For programs that do not care what the uid/gid is of the | 243 | # install time. For programs that do not care what the uid/gid is of the |
253 | # resulting users/groups, the order of the install will determine the final | 244 | # resulting users/groups, the order of the install will determine the final |
diff --git a/conf/template.xeon-d-debug/local.conf.sample b/conf/template.xeon-d-debug/local.conf.sample index 6474a37..4be1706 100644 --- a/conf/template.xeon-d-debug/local.conf.sample +++ b/conf/template.xeon-d-debug/local.conf.sample | |||
@@ -156,6 +156,7 @@ EXTRA_IMAGE_FEATURES = " \ | |||
156 | # - 'image-swab' to perform host system intrusion detection | 156 | # - 'image-swab' to perform host system intrusion detection |
157 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink | 157 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink |
158 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended | 158 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended |
159 | # NOTE: image-prelink is removed by sota.conf.inc | ||
159 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" | 160 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" |
160 | 161 | ||
161 | # | 162 | # |
@@ -242,16 +243,6 @@ CONF_VERSION = "1" | |||
242 | 243 | ||
243 | SKIP_META_VIRT_SANITY_CHECK = "1" | 244 | SKIP_META_VIRT_SANITY_CHECK = "1" |
244 | 245 | ||
245 | # | ||
246 | # OSTree integration | ||
247 | # | ||
248 | |||
249 | SOTA_MACHINE ?= "${MACHINE}" | ||
250 | |||
251 | DISTRO_FEATURES_append = " sota" | ||
252 | DISTRO_FEATURES_NATIVE_append = " sota" | ||
253 | INHERIT += " sota" | ||
254 | |||
255 | # Various packages dynamically add users and groups to the system at package | 246 | # Various packages dynamically add users and groups to the system at package |
256 | # install time. For programs that do not care what the uid/gid is of the | 247 | # install time. For programs that do not care what the uid/gid is of the |
257 | # resulting users/groups, the order of the install will determine the final | 248 | # resulting users/groups, the order of the install will determine the final |
diff --git a/conf/template.xeon-d/local.conf.sample b/conf/template.xeon-d/local.conf.sample index 5cfebf5..a1a874d 100644 --- a/conf/template.xeon-d/local.conf.sample +++ b/conf/template.xeon-d/local.conf.sample | |||
@@ -153,6 +153,7 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" | |||
153 | # - 'image-swab' to perform host system intrusion detection | 153 | # - 'image-swab' to perform host system intrusion detection |
154 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink | 154 | # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink |
155 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended | 155 | # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended |
156 | # NOTE: image-prelink is removed by sota.conf.inc | ||
156 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" | 157 | USER_CLASSES ?= "buildstats image-mklibs image-prelink" |
157 | 158 | ||
158 | # | 159 | # |
@@ -239,16 +240,6 @@ CONF_VERSION = "1" | |||
239 | 240 | ||
240 | SKIP_META_VIRT_SANITY_CHECK = "1" | 241 | SKIP_META_VIRT_SANITY_CHECK = "1" |
241 | 242 | ||
242 | # | ||
243 | # OSTree integration | ||
244 | # | ||
245 | |||
246 | SOTA_MACHINE ?= "${MACHINE}" | ||
247 | |||
248 | DISTRO_FEATURES_append = " sota" | ||
249 | DISTRO_FEATURES_NATIVE_append = " sota" | ||
250 | INHERIT += " sota" | ||
251 | |||
252 | # Various packages dynamically add users and groups to the system at package | 243 | # Various packages dynamically add users and groups to the system at package |
253 | # install time. For programs that do not care what the uid/gid is of the | 244 | # install time. For programs that do not care what the uid/gid is of the |
254 | # resulting users/groups, the order of the install will determine the final | 245 | # resulting users/groups, the order of the install will determine the final |
diff --git a/images/enea-nfv-access-common.inc b/images/enea-nfv-access-common.inc index 2a7a8c6..b174064 100644 --- a/images/enea-nfv-access-common.inc +++ b/images/enea-nfv-access-common.inc | |||
@@ -22,15 +22,19 @@ ROOTFS_POSTINSTALL_COMMAND_append += " rootfs_postinstall_dpkg_cleanup;" | |||
22 | 22 | ||
23 | IMAGE_FSTYPES += "ext4 ext4.gz tar.gz" | 23 | IMAGE_FSTYPES += "ext4 ext4.gz tar.gz" |
24 | 24 | ||
25 | # Add ostree specific image types if sota support is set | 25 | # Remove aktualizr packages from the image, we don't use it and creates odd dependencies, e.g. |
26 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ota-ext4 wic', ' ', d)}" | ||
27 | SOTA_CLIENT = "" | ||
28 | SOTA_CLIENT_PROV = "" | ||
29 | |||
30 | # Remove aktualizr from the image, we don't use it and creates odd dependencies, e.g. | ||
31 | # it creates a systemd unit that depends on network-online.target, which leads to enabling | 26 | # it creates a systemd unit that depends on network-online.target, which leads to enabling |
32 | # NetworkManager-wait-online.service, delaying boot up. | 27 | # NetworkManager-wait-online.service, delaying boot up. |
33 | IMAGE_INSTALL_remove = " \ | 28 | SOTA_CLIENT_PROV = "" |
29 | IMAGE_INSTALL_remove_sota = " \ | ||
34 | aktualizr \ | 30 | aktualizr \ |
35 | aktualizr-info \ | 31 | aktualizr-info \ |
36 | " | 32 | " |
33 | |||
34 | # We currently don't use automatic push/sign/check to a backend server, so skip running useless | ||
35 | # OSTree tasks during image build. | ||
36 | IMAGE_FSTYPES_remove_sota = " \ | ||
37 | ostreepush \ | ||
38 | garagesign \ | ||
39 | garagecheck \ | ||
40 | " | ||