@fantasio.physik.fu-berlin.de Subject: Re: problems with install_packages script Message-ID: <[EMAIL PROTECTED]> Mail-Followup-To: linux-fai <[EMAIL PROTECTED]>, \ References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.3.28i From: Henning Glawe <[EMAIL PROTECTED]>
--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--