summaryrefslogtreecommitdiffstats
path: root/images/enea-nfv-access-common.inc
blob: 5472056e1182bb6c1e8dbaeb892e06f4c422f7a9 (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', 'otaimg wic', ' ', d)}"
SOTA_CLIENT = ""
SOTA_CLIENT_PROV = ""