Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2008-01-22 Thread Ian Jackson
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

Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2008-01-22 Thread Petter Reinholdtsen
[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

Bug#430814: [Pkg-sysvinit-devel] Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2007-12-27 Thread Petter Reinholdtsen
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

Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2007-12-23 Thread Petter Reinholdtsen
[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

Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2007-12-23 Thread Petter Reinholdtsen
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

Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

2007-06-27 Thread Ian Jackson
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