Skip to content

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

Merged
theihor merged 1 commit into
libbpf:mainfrom
pulehui:tmpfs
Aug 20, 2026
Merged

rootfs: Mount tmpfs at /tmp during boot#234
theihor merged 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.

@theihor

theihor commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Wow, I wasn't aware of that. Ok, let's merge this then.

But also the vmtest.sh needs to be fixed up to use the main branch (not master).
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/testing/selftests/bpf/vmtest.sh#n68

Can you send a patch upstream?

@theihor
theihor merged commit 92caeba into libbpf:main Aug 20, 2026
18 checks passed
@pulehui

pulehui commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Wow, I wasn't aware of that. Ok, let's merge this then.

But also the vmtest.sh needs to be fixed up to use the main branch (not master). https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/testing/selftests/bpf/vmtest.sh#n68

Can you send a patch upstream?

OK, will handle this

@pulehui
pulehui deleted the tmpfs branch August 21, 2026 01:16
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