Petter Reinholdtsen writes (Re: Mount a tmpfs on /tmp if /tmp is too small):
I like the idea, and believe it is a good idea to include in Debian
too. But can we in Debian be sure that the admin will be notified
about the full file system? Where is that part implemented in Ubuntu?
Is the same
[Ian Jackson]
Yes, it should be easy if slightly tedious to do with ${...#...} et
al and sed would be possible too.
Note that I already rewrote it before I included it in Debian. You
might want to check out the new version in unstable.
Happy hacking,
--
Petter Reinholdtsen
--
To
tags 430814 + pending
thanks
Awk can not be used. Can the code be rewritten to use POSIX shell
features or sed?
I rewrote it to this:
df=`df -kP /tmp |grep -v Filesystem`
set -- $df
avail=$4
I also had to update the LSB dependency header to document that the
script should stop in
[Ian Jackson]
The attached patch arranges that at boot time, if /tmp (or whatever
is mounted there) has less than a certain amount of free space, a
tmpfs will be mounted over the top. This makes some parts of the
system more robust in the face of disk full situations; in Ubuntu we
are
Also, the patch is not safe. It uses awk before rcS.d/S45mountnfs.sh,
and will thus fail if /usr/ is NFS mounted. This is the problematic
part:
avail=`printf %s $df | awk 'NR==2 { print $4 }'`
Awk can not be used. Can the code be rewritten to use POSIX shell
features or sed?
Happy
Package: sysvinit
Version: 2.86.ds1-14.1
Severity: wishlist
Tags: patch
The attached patch arranges that at boot time, if /tmp (or whatever is
mounted there) has less than a certain amount of free space, a tmpfs
will be mounted over the top. This makes some parts of the system
more robust in the
6 matches
Mail list logo