From b25723363f2819ce02ebbd35a19001b310046cc4 Mon Sep 17 00:00:00 2001 From: Pu Lehui Date: Wed, 30 Sep 2026 10:35:55 +0800 Subject: [PATCH] rootfs: Mount tmpfs on /dev/shm in mkrootfs_tweak.sh The d_path selftest fails in local vmtest.sh because /dev/shm is not mounted. Switching the test path to /tmp is not an option because /tmp is a 9p mount in BPF CI, which does not support fallocate(). To ensure tests pass in local vmtest.sh without breaking BPF CI, mount tmpfs on /dev/shm with mode=1777 in mkrootfs_tweak.sh. Signed-off-by: Pu Lehui --- rootfs/mkrootfs_tweak.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootfs/mkrootfs_tweak.sh b/rootfs/mkrootfs_tweak.sh index 93b1a16..52cd780 100755 --- a/rootfs/mkrootfs_tweak.sh +++ b/rootfs/mkrootfs_tweak.sh @@ -34,6 +34,9 @@ fi /bin/mount bpffs /sys/fs/bpf -t bpf /bin/mount debugfs /sys/kernel/debug -t debugfs +mkdir -p /dev/shm +/bin/mount tmpfs /dev/shm -t tmpfs -o mode=1777 + # Symlink /dev/fd to /proc/self/fd so process substitution works. [[ -e /dev/fd ]] || ln -s /proc/self/fd /dev/fd