Skip to content

rootfs: Mount tmpfs at /tmp during boot - #234

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

rootfs: Mount tmpfs at /tmp during boot#234
pulehui wants to merge 1 commit into
libbpf:mainfrom
pulehui:tmpfs

Conversation

@pulehui

@pulehui pulehui commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Mount tmpfs at /tmp during boot to keep bpf selftests temporary files in RAM and avoid writing them to the underlying root filesystem.

Mount tmpfs at /tmp during boot to keep bpf selftests temporary files
in RAM and avoid writing them to the underlying root filesystem.

Signed-off-by: Pu Lehui <pulehui@gmail.com>
@pulehui

pulehui commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

@theihor @mykyta5 Hi all, not sure how to make review request in github, is this commit looks proper?

@theihor

theihor commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@pulehui we don't use rootfs code on BPF CI. Are you using this yourself?

@pulehui

pulehui commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Hi @theihor,

I'm referring to tools/testing/selftests/bpf/vmtest.sh in the kernel tree, which downloads the prebuilt rootfs images referenced by INDEX in this repository.

IIUC, those rootfs images are generated from the scripts under rootfs/ here. Currently, when running tests via vmtest.sh, /tmp is not mounted as tmpfs, so temporary test artifacts are written directly to the root filesystem image.

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.

2 participants