problem w/ libdetect0 (FAI & sarge)

Niall Young niall at chime.net.au
Thu Nov 20 07:19:30 CET 2003


On Tue, 28 Oct 2003, W. Borgert wrote:

> on sarge, fai-setup complains:
> E: Couldn't find package libdetect0
> The package is neither in sarge nor in sid, but only in woody.
> Why does FAI need libdetect0?  Is there a work-around?  Of
> course, I like to use sarge, not woody.

Just emailed the maintainer and:

On 19 Nov 2003, Dan Helfman wrote:

> libdetect has been dropped from the archive because it's no longer in
> development upstream. I recommend using discover if you need a
> detection library.

Next problem for sarge is:

Configuration file `/etc/dhcp3/dhclient.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** dhclient.conf (Y/I/N/O/D/Z) [default=N] ?  dpkg: error processing dhcp3-client (--configure):
 EOF on stdin at conffile prompt
 Adding system startup for /etc/init.d/discover ...
   /etc/rcS.d/S36discover -> ../init.d/discover
hostname: Host name lookup failure
Errors were encountered while processing:
 dhcp3-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

dhcp3-client's preinst copies /etc/dhclient.conf ->
/etc/dhcp3/dhclient.conf if it exists, which then trips up conffile,
patch for both issues attached.

Applied to a clean woody upgraded to sarge seems to work fine for
fai 2.5.1 - can others try it and see how sarge goes now?

Niall Young                                    Chime Communications Pty Ltd
niall at chime.net.au                            Level 6, 263 Adelaide Terrace
Ph: (+61) 08 9213 1330 / 0408 192 797         Perth, Western Australia 6000

    "I was trying to kill a level 5 lumberjack in the MUD I play"
                                        -- Travis Read, August 2003
-------------- next part --------------
--- /usr/sbin/make-fai-nfsroot.bak	2003-10-10 21:01:13.000000000 +0800
+++ /usr/sbin/make-fai-nfsroot	2003-11-26 12:30:25.000000000 +0800
@@ -58,7 +58,7 @@
 
 case `uname -m` in
     i386|i486|i586|i686) 
-	arch_packages="grub libdetect0 read-edid kudzu hwtools" ;;
+	arch_packages="grub read-edid kudzu hwtools" ;;
     ia64) 
 	arch_packages="elilo efibootmgr" ;;
     *)  arch_packages="" ;;
@@ -233,7 +233,9 @@
     call_verbose call_with_stamp upgrade_nfsroot  
     echo "Adding additional packages to $NFSROOT:"
     echo "$packages"
+    mv $NFSROOT/etc/dhclient.conf $NFSROOT/etc/dhclient.conf.bak
     call_verbose call_with_stamp add_packages_nfsroot
+    mv $NFSROOT/etc/dhclient.conf.bak $NFSROOT/etc/dhclient.conf
     call_with_stamp copy_fai_files
 
     # set timezone


More information about the linux-fai mailing list