Skip to content

Commit b449304

Browse files
committed
Moved /tmp folder to tmpfs
1 parent b28b800 commit b449304

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

files/initramfs-tools/union-mount.j2

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ mkdir -p ${rootmnt}/boot
212212
mkdir -p ${rootmnt}/host/$image_dir/boot
213213
mount --bind ${rootmnt}/host/$image_dir/boot ${rootmnt}/boot
214214

215+
## Mount the /tmp directory as tmpfs
216+
mount -t tmpfs -o rw,nosuid,nodev tmpfs ${rootmnt}/tmp
217+
215218
## Mount loop device or tmpfs for /var/log
216219
if $logs_inram; then
217220
# NOTE: some platforms, when reaching initramfs stage, have a small

0 commit comments

Comments
 (0)