woody fai-setup/pcmcia-cs may lock up your system

Chad C. Walstrom chewie at wookimus.net
Fri Mar 15 22:09:02 CET 2002


On Fri, Mar 15, 2002 at 01:36:21PM +0100, Thomas Gebhardt wrote:
> Hi,
> 
> when I tried to build the nfsroot image on a woody (kernel 2.4.18)
> system fai-setup/debootstrap, it completely locked up. It took
> me some time to find the culprit, namely the postinst script
> of the pcmcia-cs package that was installed by debootstrap which
> in turn was invoked by fai-setup. I submitted a bug report
> (#138309) against pcmcia-cs.

Did you track the bug down to pcmcia-cs, debootstrap, or FAI?  Whose
fault was it?

Anyway, if you run into a problem like that again for debootstrap, just
place the --exclude=pcmcia-cs directive to the debootstrap call.

    deb_exclude=pcmcia-cs
    suite=woody
    target=/tmp/target
    mirror=file:/mirror/debian

    debootstrap --exclude=$dbst_exclude $suite $target $mirror

This way, you don't have to patch woody's scripts.  It's certainly
admirable that you're ready to dig in and code, but if you read the
manpages a bit more carefully, you can avoid some unnecessary work.

Instead, let's make the make-fai-nfsroot script a little more flexible.
The patch to do this is attached.  Just assign FAI_DEBOOTSTRAP_OPTS to
your fai.conf.
    
    e.g. FAI_DEBOOTSTRAP_OPTS="--exclude=pcmcia-cs"

-- 
Chad Walstrom <chewie at wookimus.net>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' chewie at wookimus.net)
-------------- next part --------------
Index: make-fai-nfsroot
===================================================================
RCS file: /cvs/debian-boot/fai/scripts/make-fai-nfsroot,v
retrieving revision 1.89
diff -u -B -r1.89 make-fai-nfsroot
--- make-fai-nfsroot	2002/03/13 14:24:27	1.89
+++ make-fai-nfsroot	2002/03/15 21:06:58
@@ -148,7 +148,7 @@
     
     echo "Creating nfsroot for $1 using debootstrap"
     [ "$verbose" ] && echo "calling debootstrap $1 $NFSROOT $2"
-    yes '' | debootstrap $1 $NFSROOT $2 || true
+    yes '' | debootstrap $FAI_DEBOOTSTRAP_OPTS $1 $NFSROOT $2 || true
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 create_base() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20020315/d38148ff/attachment.bin 


More information about the linux-fai mailing list