Am 03.12.2010 02:26, schrieb Karl Wallner:
Hi,

after update to 3.4.5 I get an error when running fai-mirror (system is a 
current debian lenny).

The following command was entered ("/fai/etc"-config files are stored in a 
different location, but this should
IMHO not cause the problem).
# /usr/bin/fai-mirror -v -C /workspace/fai_lenny/fai_etc /srv/fai/mirror

For debugging used:
# bash -x /usr/bin/fai-mirror -v -C /workspace/fai_lenny/fai_etc /srv/fai/mirror
... (runs for a while)
...
Building dependency tree
Reading state information... Done
E: Couldn't find package install_packages:
+ umount_dirs
+ '[' '' ']'
+ true

Looks like some command output ("install install_packages: reading config files 
from directory
/workspace/fai_lenny/fai_etc") is used as argument (variable plist) for 
apt-get, but can't detect why this happens.


Greetings

Karl

Attached the patch to fix this.

-- Karl
diff -r -c fai-3.4.5.orig/bin/install_packages fai-3.4.5/bin/install_packages
*** fai-3.4.5.orig/bin/install_packages	2010-11-30 23:39:59.000000000 +0100
--- fai-3.4.5/bin/install_packages	2010-12-04 18:36:07.000000000 +0100
***************
*** 132,138 ****
    $cache = new AptPkg::Cache;
  }
  
! print "$0: reading config files from directory $classpath\n";
  foreach (@classes) {
    &readconfig($classpath,$_) if -f "$classpath/$_"; # read all package config files
  }
--- 132,138 ----
    $cache = new AptPkg::Cache;
  }
  
! warn "$0: reading config files from directory $classpath\n";
  foreach (@classes) {
    &readconfig($classpath,$_) if -f "$classpath/$_"; # read all package config files
  }

Antwort per Email an