blob: 50cba9514bf13fa1ef257698644e761eb29cca3e [file] [log] [blame]
Patrick Williams0ca19cc2021-08-16 14:03:13 -05001SUMMARY = "Overlayfs class unit test"
2DESCRIPTION = "Contains an overlayfs configuration"
3LICENSE = "MIT"
4
5INHIBIT_DEFAULT_DEPS = "1"
6EXCLUDE_FROM_WORLD = "1"
7
8inherit ${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs", "", d)}
9include test_recipe.inc
10
Andrew Geissler595f6302022-01-24 19:11:47 +000011OVERLAYFS_WRITABLE_PATHS[mnt-overlay] += "/usr/share/my-application"
Patrick Williams0ca19cc2021-08-16 14:03:13 -050012
13do_install() {
14 install -d ${D}/usr/share/my-application
Andrew Geissler87f5cff2022-09-30 13:13:31 -050015 install -d ${D}${sysconfdir}
16 echo "Original file in /etc" >> ${D}${sysconfdir}/lower-layer-test.txt
Patrick Williams0ca19cc2021-08-16 14:03:13 -050017}
18
Andrew Geissler87f5cff2022-09-30 13:13:31 -050019FILES:${PN} += "\
20 ${exec_prefix} \
21 ${sysconfdir \
22"