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

Petter Reinholdtsen pere at hungry.com
Sun Dec 23 11:39:05 UTC 2007


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 hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list