Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28425 - bootmisc causes "Environment too large for exec"
Summary: bootmisc causes "Environment too large for exec"
Status: RESOLVED DUPLICATE of bug 21438
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-11 01:53 UTC by Jaco Kroon
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2003-09-11 01:53:40 UTC
On line 44 of /etc/init.d/bootmisc there is a command
( find /var/lock -type f -print0 | xargs -0 rm -f -- 1>&2 )
For some reason this causes a problem, it is not critical as far as I can
determine, but annoying none the less.
As this is non-critical bug, there is three things that can be done:
1.  ignore it.
2.  change the command to read something like:
     ( find /var/local -type f -exec rm -rf -- "{}" \; )
    which I suspect might not actually solve the problem.
3.  Pipe stderr to /dev/null.

Reproducible: Always
Steps to Reproduce:
1.  Reboot your system and watch carefully.

Actual Results:  
Nothing critical as far as I can determine.  It might be that the exec cannot
execute and any locks held thus will not be deleted.

Expected Results:  
Not show the error message unless it is critical.

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test5)
=================================================================
System uname: 2.6.0-test5 i686 Pentium III (Coppermine)
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.up.ac.za/mirrors/gentoo.org/gentoo
ftp://ftp.is.co.za/linux/distributions/gentoo http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp.up.ac.za/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam ssl perl
python imlib oggvorbis gtk qt kde opengl mozilla dga fbcon gtk2 imap innodb
jikes ladcca maildir mbox moznocompose moznoirc moznomail mozp3p mozsvg
mozxmlterm mysql nocardbus nptl oav odbc pic samba sasl slp sse tiff vim-with-x
wmf xml xosd -bonobo -esd -gnome -motif -scanner"
Comment 1 Doug Weimer 2003-09-11 03:43:31 UTC
This appears to have already been changed in the latest baselayout package.

# qpkg -I -v baselayout
sys-apps/baselayout-1.8.6.10-r1 *

# grep \/var\/lock bootmisc 
                ebegin "Cleaning /var/lock, /var/run"
                ( find /var/lock -type f -exec rm -f -- {} \; )
                # Create the .keep to stop portage from removing /var/lock
                >/var/lock/.keep
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-09-11 08:46:20 UTC

*** This bug has been marked as a duplicate of 21438 ***