diff options
author | Vyacheslav Yurkov <v.yurkov@precitec.de> | 2022-09-07 21:51:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-09 12:24:43 +0100 |
commit | 6cd5db1e626c36c11dd22322daeaaec307c68d07 (patch) | |
tree | 438e465cf6f34a3d402410f26c2671b806ff990a /meta-selftest | |
parent | c3ec554ba5dbe5abcba35724f039baba8a4c27eb (diff) | |
download | poky-6cd5db1e626c36c11dd22322daeaaec307c68d07.tar.gz |
oeqa/selftest: Add lower layer test for overlayfs-etc
Place a test file on the /etc by means of overlayfs-user recipe.
Perform QA checks to make sure that:
- When lower layer is exposed, that it's read-only to avoid undefined behavior
- By default lower layer is not exposed
(From OE-Core rev: 2fc742178675598208b400d9889a1681249d7eea)
Signed-off-by: Vyacheslav Yurkov <v.yurkov@precitec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-rw-r--r-- | meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb b/meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb index 913a4d1fdb..50cba9514b 100644 --- a/meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb +++ b/meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb | |||
@@ -12,6 +12,11 @@ OVERLAYFS_WRITABLE_PATHS[mnt-overlay] += "/usr/share/my-application" | |||
12 | 12 | ||
13 | do_install() { | 13 | do_install() { |
14 | install -d ${D}/usr/share/my-application | 14 | install -d ${D}/usr/share/my-application |
15 | install -d ${D}${sysconfdir} | ||
16 | echo "Original file in /etc" >> ${D}${sysconfdir}/lower-layer-test.txt | ||
15 | } | 17 | } |
16 | 18 | ||
17 | FILES:${PN} += "/usr" | 19 | FILES:${PN} += "\ |
20 | ${exec_prefix} \ | ||
21 | ${sysconfdir \ | ||
22 | " | ||