10ca19ccfSPatrick WilliamsSUMMARY = "Overlayfs class unit test"
20ca19ccfSPatrick WilliamsDESCRIPTION = "Contains an overlayfs configuration"
30ca19ccfSPatrick WilliamsLICENSE = "MIT"
40ca19ccfSPatrick Williams
50ca19ccfSPatrick WilliamsINHIBIT_DEFAULT_DEPS = "1"
60ca19ccfSPatrick WilliamsEXCLUDE_FROM_WORLD = "1"
70ca19ccfSPatrick Williams
856b44a98SPatrick Williamsinherit_defer ${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs", "", d)}
90ca19ccfSPatrick Williamsinclude test_recipe.inc
100ca19ccfSPatrick Williams
11595f6308SAndrew GeisslerOVERLAYFS_WRITABLE_PATHS[mnt-overlay] += "/usr/share/my-application"
120ca19ccfSPatrick Williams
130ca19ccfSPatrick Williamsdo_install() {
140ca19ccfSPatrick Williams    install -d ${D}/usr/share/my-application
1587f5cff0SAndrew Geissler    install -d ${D}${sysconfdir}
1687f5cff0SAndrew Geissler    echo "Original file in /etc" >> ${D}${sysconfdir}/lower-layer-test.txt
170ca19ccfSPatrick Williams}
180ca19ccfSPatrick Williams
1987f5cff0SAndrew GeisslerFILES:${PN} += "\
2087f5cff0SAndrew Geissler    ${exec_prefix} \
21*73bd93f1SPatrick Williams    ${sysconfdir} \
2287f5cff0SAndrew Geissler"
23