Commit cc9decd5 authored by Martin Pitt's avatar Martin Pitt
Browse files

conf/mounted-tmp.conf: Mount an 1 MiB tmpfs on /tmp/ if /tmp has less than

1 MB of space, so that booting has a chance of succeeding with a full
disk. Ubuntu up to 8.04 LTS already had this, but this got lost in
between. (LP: #932598)
parent 2311650a
......@@ -56,4 +56,10 @@ script
# Remove all old files, then all empty directories
find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
find . -depth -xdev $DEXPR $EXCEPT -type d -empty -delete
# Check if we have enough space in /tmp, and if not, mount a tmpfs there
avail=`df -kP /tmp | awk 'NR==2 { print $4 }'`
if [ "$avail" -lt 1000 ]; then
mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
fi
end script
mountall (2.35) UNRELEASED; urgency=low
* conf/mounted-tmp.conf: Mount an 1 MiB tmpfs on /tmp/ if /tmp has less than
1 MB of space, so that booting has a chance of succeeding with a full
disk. Ubuntu up to 8.04 LTS already had this, but this got lost in
between. (LP: #932598)
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 08 Mar 2012 11:50:33 +0100
mountall (2.34) precise; urgency=low
* Change conf/mounted-debugfs.conf to run the chmod in a || true.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment