Skip to content

rootfs: Mount tmpfs on /dev/shm in mkrootfs_tweak.sh - #239

Open
pulehui wants to merge 1 commit into
libbpf:mainfrom
pulehui:devshm
Open

pulehui wants to merge 1 commit into
libbpf:mainfrom
pulehui:devshm

Conversation

@pulehui

@pulehui pulehui commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

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.

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 <pulehui@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant