Skip to contentSkip to conversation

overlayfs-tools: upgrade 2026.10 -> 2026.11

PATCH New [email protected] 1 participant 2 messages Nov 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 overlayfs-tools: upgrade 2026.10 -> 2026.11

From: Vyacheslav Yurkov <[email protected]>

Changelog:
- Decople tests from the build system

---
 .../{overlayfs-tools_2026.10.bb => overlayfs-tools_2026.11.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-filesystems/recipes-utils/overlayfs/{overlayfs-tools_2026.10.bb => overlayfs-tools_2026.11.bb} (88%)
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_2026.11.bb renamed from meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_2026.10.bb +1 -1
similarity index 88%
rename from meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_2026.10.bb
rename to meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_2026.11.bb
index 6a3d609567..f0c378e043 100644
@@ -7,7 +7,7 @@ SRC_URI = "\
     git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master;tag=v${PV} \
 "
 
-SRCREV = "950d0cf35e4f917b6836565d76e38bcf7fcf2d5f"
+SRCREV = "42582352e11b162895c06826f18a2246d8005ca9"
 
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
#1 lore raw

PATCH 2/2 overlayfs-tools: add ptest support

From: Vyacheslav Yurkov <[email protected]>

Run the upstream test cases on the target: the output of "overlay diff", "overlay diff -v" and "overlay diff -b" is compared with the expected results, and the result of "overlay merge" is mounted as an overlay.

The upstream meson test targets wrap these steps in sudo. ptest runs as root, so run-ptest performs them directly. The tests need root, trusted.* xattr support in TMPDIR and overlayfs support in the kernel; if any of these is missing, the tests are reported as SKIP.

"overlay merge" generates a script that uses GNU coreutils options (chmod --reference, mv -T, cp --attributes-only), hence the coreutils dependency.

The tests take about a second, so add the recipe to PTESTS_FAST_META_FILESYSTEMS.

AI-Assisted: Claude

---
 .../ptest-packagelists-meta-filesystems.inc       |  1 +
 .../overlayfs/overlayfs-tools/run-ptest           |  7 +++++++
 .../overlayfs/overlayfs-tools_2026.11.bb          | 15 ++++++++++++++-
 3 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100755 meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/run-ptest
meta-filesystems/conf/include/ptest-packagelists-meta-filesystems.inc +1 -0
index 26917a93c9..bf2701b660 100644
@@ -9,6 +9,7 @@
 PTESTS_FAST_META_FILESYSTEMS = "\
     e2tools \
     exfatprogs \
+    overlayfs-tools \
     unionfs-fuse \
 "
 
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools/run-ptest new file +7 -0
new file mode 100755
index 0000000000..80e0c2b6b6
@@ -0,0 +1,7 @@
+#!/bin/sh
+cd "$(dirname "$0")" || exit 1
+./test_cases/run-tests.sh "$(command -v overlay)" ./test_cases
+rc=$?
+# 77 means "could not run"; the script already printed SKIP lines
+[ $rc -eq 77 ] && exit 0
+exit $rc
meta-filesystems/recipes-utils/overlayfs/overlayfs-tools_2026.11.bb +14 -1
index f0c378e043..4714479024 100644
@@ -5,12 +5,25 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69"
 
 SRC_URI = "\
     git://github.com/kmxz/overlayfs-tools.git;protocol=https;branch=master;tag=v${PV} \
+    file://run-ptest \
 "
 
 SRCREV = "42582352e11b162895c06826f18a2246d8005ca9"
 
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
-inherit meson pkgconfig
+inherit meson pkgconfig ptest
 
 DEPENDS:append:libc-musl = " fts"
+
+do_install_ptest() {
+	install -d ${D}${PTEST_PATH}/test_cases
+    install -m 0755 ${S}/test_cases/run-tests.sh ${D}${PTEST_PATH}/test_cases/
+    for f in lower.tar upper.tar diff.saved verbose.saved brief.saved; do
+        install -m 0644 ${S}/test_cases/$f ${D}${PTEST_PATH}/test_cases/
+    done
+}
+
+# "overlay merge" generates a script that needs GNU coreutils options
+RDEPENDS:${PN}-ptest += "attr coreutils diffutils tar"
+RRECOMMENDS:${PN}-ptest += "kernel-module-overlay"