Skip to contentSkip to conversation

overlayfs: meta-selftest recipe

PATCH New Vyacheslav Yurkov 1 participant 1 message Jul 12, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH v2 6/8 overlayfs: meta-selftest recipe

In reply to a message not in the archive

The recipe demonstrates example usage of overlayfs bbclass

---
 .../overlayfs-user/overlayfs-user.bb            | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb
meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb new file +17 -0
new file mode 100644
index 0000000000..5c7be7da97
@@ -0,0 +1,17 @@
+SUMMARY = "Overlayfs class unit test"
+DESCRIPTION = "Contains an overlayfs configuration"
+LICENSE = "MIT"
+
+INHIBIT_DEFAULT_DEPS = "1"
+EXCLUDE_FROM_WORLD = "1"
+
+inherit ${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs", "", d)}
+include test_recipe.inc
+
+OVERLAYFS_WRITABLE_PATHS[mnt-overlay] = "/usr/share/my-application"
+
+do_install() {
+    install -d ${D}/usr/share/my-application
+}
+
+FILES_${PN} += "/usr"
Signature · 1 line
2.28.0