]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
util-linux: Add fix to isolate test fstab entries using CUSTOM_FSTAB
authorVirendra Thakur <virendra.thakur@kpit.com>
Thu, 22 May 2025 12:11:41 +0000 (17:41 +0530)
committerSteve Sakoman <steve@sakoman.com>
Fri, 23 May 2025 15:27:24 +0000 (08:27 -0700)
commit94747fb63518bf907eb7c09fc2e146e39e235a7d
tree48c94cafcbb5bb16104a3acf111692d5b91fa144
parentc77ff1288719d90ef257dfe28cb33b3768fc124a
util-linux: Add fix to isolate test fstab entries using CUSTOM_FSTAB

During ptest execution, util-linux adds mount entries in /etc/fstab
and runs `mount -a`, which mounts all available entries from
/etc/fstab. This can cause unintended mounts that are unrelated to
the test, leading to incorrect test behavior.

To avoid this, upstream util-linux introduced a mechanism using
CUSTOM_FSTAB,which isolates test-specific fstab entries. Only entries
listed in CUSTOM_FSTAB are mounted during test execution, ensuring
tests do not interfere with or depend on the system's /etc/fstab.

This commit backports below upstream changes to use CUSTOM_FSTAB.
https://github.com/util-linux/util-linux/commit/ed3d33faff17fb702a3acfca2f9f24e69f4920de
https://github.com/util-linux/util-linux/commit/b1580bd760519a2cf052f023057846e54de47484
https://github.com/util-linux/util-linux/commit/6aa8d17b6b53b86a46c5da68c02a893113130496

Signed-off-by: Virendra Thakur <virendra.thakur@kpit.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/util-linux/util-linux.inc
meta/recipes-core/util-linux/util-linux/fstab-isolation.patch [new file with mode: 0644]