From b4493040c95d2e0db81f471a6423816fba11961c Mon Sep 17 00:00:00 2001 From: Ashwin Srinivasan Date: Sat, 23 Nov 2024 12:44:03 +0000 Subject: [PATCH] Moved /tmp folder to tmpfs --- files/initramfs-tools/union-mount.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/initramfs-tools/union-mount.j2 b/files/initramfs-tools/union-mount.j2 index fccd21f415ef..7c7f3390e141 100644 --- a/files/initramfs-tools/union-mount.j2 +++ b/files/initramfs-tools/union-mount.j2 @@ -212,6 +212,9 @@ mkdir -p ${rootmnt}/boot mkdir -p ${rootmnt}/host/$image_dir/boot mount --bind ${rootmnt}/host/$image_dir/boot ${rootmnt}/boot +## Mount the /tmp directory as tmpfs +mount -t tmpfs -o rw,nosuid,nodev tmpfs ${rootmnt}/tmp + ## Mount loop device or tmpfs for /var/log if $logs_inram; then # NOTE: some platforms, when reaching initramfs stage, have a small