Package: fai-server
Version: 3.2.17
Severity: normal
Tags: patch

fai-mirror does not honor the -C command line option. It does however
honor the $FAI_ETC_DIR environment variable. The patch fixes this
behavior. The patch will cause the -C command line option to supercede
$FAI_ETC_DIR.

James Richardson

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages fai-server depends on:
ii  debootstrap                   1.0.12     Bootstrap a basic Debian system
ii  fai-client                    3.2.17     Fully Automatic Installation clien

Versions of packages fai-server recommends:
pn  dhcp3-server | bootp       <none>        (no description available)
ii  inetutils-inetd [inet-supe 2:1.6-1       internet super server
ii  nfs-kernel-server          1:1.1.4-1     support for NFS kernel server
ii  openssh-client             1:5.1p1-5     secure shell client, an rlogin/rsh
ii  openssh-server             1:5.1p1-5     secure shell server, an rshd repla
ii  syslinux-common            2:3.73+dfsg-2 Kernel loader which uses a FAT, ex
pn  tftpd-hpa | tftpd          <none>        (no description available)

Versions of packages fai-server suggests:
ii  apt-move                   4.2.27-1+b4   Maintain Debian packages in a pack
ii  aptitude                   0.4.11.11-1   terminal-based package manager
pn  debmirror                  <none>        (no description available)
ii  genisoimage                9:1.1.9-1     Creates ISO-9660 CD-ROM filesystem
ii  grub                       0.97-47lenny2 GRand Unified Bootloader (Legacy v
pn  libproc-daemon-perl        <none>        (no description available)
pn  perl-tk                    <none>        (no description available)

-- no debconf information
--- fai-mirror.orig     2009-02-25 16:46:10.000000000 -0500
+++ fai-mirror  2009-04-11 09:47:06.000000000 -0400
@@ -243,7 +243,10 @@
 if [ -n "$FAI_ETC_DIR" -a -z "$cfdir" ]; then
     echo "Using environment variable \$FAI_ETC_DIR."
 fi
-cfdir=${FAI_ETC_DIR:=/etc/fai}
+# use -C option if present otherwise use $FAI_ETC_DIR or default to /etc/fai
+if [ -z "$cfdir" ]; then
+    cfdir=${FAI_ETC_DIR:=/etc/fai}
+fi
 cfdir=$(readlink -f $cfdir) # canonicalize path
 if [ ! -d "$cfdir" ]; then
     echo "$cfdir is not a directory"

Reply via email to