]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
util-linux: Add fix to isolate test fstab entries using CUSTOM_FSTAB
authorVirendra Thakur <thakur.virendra1810@gmail.com>
Thu, 22 May 2025 14:12:26 +0000 (19:42 +0530)
committerSteve Sakoman <steve@sakoman.com>
Tue, 27 May 2025 16:47:08 +0000 (09:47 -0700)
commite7420db0d77611140149ccfefefc8becfad4f34b
tree563c57527f5418758e8fd1095475b4b6fe0d2866
parent57e25585abf34677451c68d581374245e5b4b418
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]