blob: 3b59e3761977368a3b4a73e8255e5de371b48747 [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
Patrick Williams56b44a92024-01-19 08:49:29 -06008inherit_defer ${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs", "", d)}
Patrick Williams0ca19cc2021-08-16 14:03:13 -05009include 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} \
Patrick Williams73bd93f2024-02-20 08:07:48 -060021 ${sysconfdir} \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050022"