summaryrefslogtreecommitdiffstats
path: root/images/enea-edge-common.inc
blob: b174064dda262f0be6479838d9a82cdfc3e3a1f0 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)}"

PACKAGE_EXCLUDE_x86-64_sota += "grub-common-extras"

# 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"

# Remove aktualizr packages 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.
SOTA_CLIENT_PROV = ""
IMAGE_INSTALL_remove_sota = " \
    aktualizr \
    aktualizr-info \
    "

# We currently don't use automatic push/sign/check to a backend server, so skip running useless
# OSTree tasks during image build.
IMAGE_FSTYPES_remove_sota = " \
    ostreepush \
    garagesign \
    garagecheck \
    "