blob: a10e2e2c0080f685163cc4ae1d99d2f80f6bd1d2 (
plain)
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
|
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 = ""
|