No subject

Henning Glawe glaweh at physik.fu-berlin.de
Thu Sep 12 13:33:34 CEST 2002


@fantasio.physik.fu-berlin.de
Subject: Re: problems with install_packages script
Message-ID: <20020912113333.GA15270 at physik.fu-berlin.de>
Mail-Followup-To: linux-fai <linux-fai at uni-koeln.de>, \
References: <15741.49169.109923.208756 at informatik.uni-koeln.de> <Pine.BSI.4.33.0209111200380.28475-100000 at network.ucsd.edu>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ"
Content-Disposition: inline
In-Reply-To: <Pine.BSI.4.33.0209111200380.28475-100000 at network.ucsd.edu>
User-Agent: Mutt/1.3.28i
From: Henning Glawe <glaweh at physik.fu-berlin.de>


--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Sep 11, 2002 at 12:16:14PM -0700, Mark Hedges wrote:
> Also I see a recurring error "xargs: environment is too large
> for exec" while install_packages fails to install these, and
> also when I try `chroot /tmp/target apt-get -f install` (or -m)
> on the command line.
this is a common problem with FAI, because rcS_fai exports all
subroutines (which is unnecessairy in most cases).

just apply the attached patch (part of PFAI), and those problems will be
non-existant... if you make use of hooks and you call FAI-subroutines
within them, this patch will certainly lead to problems...

otherwise you would have to patch the install kernel to allow bigger
environments, and this is really not something you want to do. ;)

-- 
c u
henning

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="00100-rcS_fai-dont-export-subroutines.diff"

--- fai/scripts/rcS_fai	Thu May  2 18:34:55 2002
+++ pfai/pfai/scripts/rcS_fai	Fri Jun 14 16:53:32 2002
@@ -55,10 +55,13 @@
     [ -f /tmp/install_config/fai/fai.conf ] && . /tmp/install_config/fai/fai.conf
 
     # read subroutine definitions
+    # but don't export them
+    set +a
     sub=$FAI_SHAREDIR/subroutines
     [ -f $sub ] && . $sub
     [ -f $sub-$OS_TYPE ] && . $sub-$OS_TYPE
-
+    set -a
+    
     DEBIAN_FRONTEND=noninteractive
     # local disks are mounted to $FAI_ROOT
     [ -z "$FAI_ROOT" ] && FAI_ROOT=/tmp/target

--mP3DRpeJDSE+ciuQ--



More information about the linux-fai mailing list