Package: fai-client
Version: 3.2.16
Severity: normal
Tags: patch

When doing a softupdate, the file /var/run/fai/fai_softupdate_is_running is
created. This file is used by fcopy to implement the option -U (don't copy if
in softupdate) (see /usr/sbin/fcopy, line 434).

The file /var/run/fai/fai_softupdate_is_running is created by
(/usr/lib/fai/subroutines, line 533 and 536):

stamp=/var/run/fai/fai_softupdate_is_running
echo $$ > $stamp

thus, the directory /var/run/fai/ has to exists already. /var/run/fai/ is
created when the package fai-client is installed.

However, when /var/run is mounted as tmpfs, the directory /var/run/fai/ is not
conserved during reboots, so /var/run/fai/fai_softupdate_is_running is not
created during an softupdate and "fcopy -U" does not detect that a softupdate is
occurring...

It should be sufficient to add
[ -e /var/run/fai/ ] || mkdir /var/run/fai/ 
before line 536 in /usr/lib/fai/subroutines to guarantee the presence of
/var/run/fai/ and resolve the problem.


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fai-client depends on:
ii  file                       4.26-1        Determines file type using "magic"
ii  libapt-pkg-perl            0.1.22+b1     Perl interface to libapt-pkg
ii  libparse-recdescent-perl   1.95.1+dfsg-3 generates recursive-descent parser
ii  perl                       5.10.0-19     Larry Wall's Practical Extraction 

Versions of packages fai-client recommends:
ii  cfengine2                     2.2.8-1    Tool for configuring and maintaini
ii  debconf-utils                 1.5.24     debconf utilities

Versions of packages fai-client suggests:
pn  cryptsetup                    <none>     (no description available)
pn  dmsetup                       <none>     (no description available)
pn  ntfsprogs                     <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to