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

Ian Jackson ian at davenant.greenend.org.uk
Tue Jan 22 19:41:47 UTC 2008


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 feature present in Debian?

I don't think so.  IIRC it's done by some part of the gnome session
arrangements.

Petter Reinholdtsen writes ("Re: Mount a tmpfs on /tmp if /tmp is too small"):
> 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?

Yes, it should be easy if slightly tedious to do with ${...#...} et al
and sed would be possible too.

Ian.





More information about the Pkg-sysvinit-devel mailing list