summaryrefslogtreecommitdiffstats
path: root/recipes-platform/images/agl-demo-container-guest-integration.inc
blob: f835761fd04edb71150aefd6f8b628301ae531eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
IMAGE_CONTAINER_GUEST_APPEND = " base-files-guest-fstab"
IMAGE_INSTALL:append = " \
    ${@bb.utils.contains('AGL_FEATURES', 'agl-container-guest-demo', '${IMAGE_CONTAINER_GUEST_APPEND}', '', d)} \
"

fixupfstab_for_container_guest_images() {
    rm -f  ${IMAGE_ROOTFS}/${sysconfdir}/fstab
    ln -s fstab-guest ${IMAGE_ROOTFS}/${sysconfdir}/fstab
}

rmboot_for_container_guest_images() {
    rm -rf ${IMAGE_ROOTFS}/boot
}

ROOTFS_POSTPROCESS_COMMAND += " \
    ${@bb.utils.contains('AGL_FEATURES', 'agl-container-guest-demo', 'fixupfstab_for_container_guest_images;', '', d)} \
    ${@bb.utils.contains('AGL_FEATURES', 'agl-container-guest-demo', 'rmboot_for_container_guest_images;', '', d)} \
"