Skip to content

Commit db0a894

Browse files
committed
Limit /tmp directory on tmpfs to 25% of total RAM
1 parent 2ebdcf1 commit db0a894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/initramfs-tools/union-mount.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ mkdir -p ${rootmnt}/host/$image_dir/boot
213213
mount --bind ${rootmnt}/host/$image_dir/boot ${rootmnt}/boot
214214

215215
## Mount the /tmp directory as tmpfs
216-
mount -t tmpfs -o rw,nosuid,nodev tmpfs ${rootmnt}/tmp
216+
mount -t tmpfs -o rw,nosuid,nodev,size=25% tmpfs ${rootmnt}/tmp
217217

218218
## Mount loop device or tmpfs for /var/log
219219
if $logs_inram; then

0 commit comments

Comments
 (0)