1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require images/enea-image-common.inc
IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_INSTALL += " \
packagegroup-enea-virtualization \
kernel-modules \
"
# run-postinsts duplicates dpkg-configure if package_deb is used
PACKAGE_INSTALL_remove = "${@bb.utils.contains('PACKAGE_CLASSES', 'package_deb', 'run-postinsts', '', d)}"
# After installing packages inside the rootfs, remove backup DPKG status file
rootfs_postinstall_dpkg_cleanup () {
if ${@bb.utils.contains('PACKAGE_CLASSES', 'package_deb', 'true', 'false', d)}; then
rm -f ${IMAGE_ROOTFS}/var/lib/dpkg/status-old
fi
}
ROOTFS_POSTINSTALL_COMMAND_append += " rootfs_postinstall_dpkg_cleanup;"
IMAGE_FSTYPES += "ext4 ext4.gz tar.gz"
# Add ostree specific image types if sota support is set
IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ota-ext4 wic', ' ', d)}"
SOTA_CLIENT = ""
SOTA_CLIENT_PROV = ""
# Remove aktualizr from the image, we don't use it and creates odd dependencies, e.g.
# it creates a systemd unit that depends on network-online.target, which leads to enabling
# NetworkManager-wait-online.service, delaying boot up.
IMAGE_INSTALL_remove = " \
aktualizr \
aktualizr-info \
"
|