From 9887636653745c1a9b0c1e22f7ddde20ae6dbb06 Mon Sep 17 00:00:00 2001 From: Pu Lehui Date: Mon, 17 Aug 2026 19:44:32 +0800 Subject: [PATCH] rootfs: Mount tmpfs at /tmp during boot 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 --- rootfs/mkrootfs_tweak.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/rootfs/mkrootfs_tweak.sh b/rootfs/mkrootfs_tweak.sh index fab22f96..93b1a168 100755 --- a/rootfs/mkrootfs_tweak.sh +++ b/rootfs/mkrootfs_tweak.sh @@ -30,6 +30,7 @@ if [[ -z "$(/bin/mount -t devtmpfs)" ]]; then fi /bin/mount sysfs /sys -t sysfs +/bin/mount tmpfs /tmp -t tmpfs /bin/mount bpffs /sys/fs/bpf -t bpf /bin/mount debugfs /sys/kernel/debug -t debugfs