Skip to content

Commit

Permalink
Moved /tmp folder to tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
assrinivasan committed Nov 23, 2024
1 parent b28b800 commit b449304
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/initramfs-tools/union-mount.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b449304

Please sign in to comment.