[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#633153: closed by Anton Zinoviev <zinoviev@debian.org> (Bug#633153: fixed in console-setup 1.74)



On Tue, Nov 29, 2011 at 03:50:10PM +0100, Michael Biebl wrote:
> On 29.11.2011 14:21, Debian Bug Tracking System wrote:
> > 
> >    * setupcon: add /run and /dev to /lib/init/rw as alternative directories
> >      for temporary files.
> 
> 
> /dev for temporary files? I hope this is a typo.

No, it's not a typo but /run is used with precedence.  The exact code is this:

    TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null` \
        || TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \
        || TMPFILE=`mktemp /dev/.tmpkbd.XXXXXX 2>/dev/null` \
        || TMPFILE=`mktemp /lib/init/rw/tmpkbd.XXXXXX 2>/dev/null` \
        || TMPFILE=`mktemp 2>/dev/null`

The reason for this is I want the code to be working on any Unix-like 
system regardless of the distribution, version, kernel (Linux or 
FreeBSD) or the stage at the boot process.

Anton Zinoviev




Reply to: