Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27091 - xargs: Environment too large during boot, caused by /etc/init.d/bootmisc
Summary: xargs: Environment too large during boot, caused by /etc/init.d/bootmisc
Status: RESOLVED DUPLICATE of bug 23569
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 20:11 UTC by mathew
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 mathew 2003-08-21 20:11:42 UTC
"xargs: Environment too large" appearing in dmesg every single boot, when Gentoo
goes to clean /var/lock and /var/run.

Reproducible: Always
Steps to Reproduce:
1. Boot system.
2. Watch screen.
3.



Expected Results:  
Turns out line 44 of /etc/init.d/bootmisc does a find, then pipes the output to
xargs, then has xargs execute rm -f.

The relevant code can be simplified to 

ebegin "Cleaning /var/lock, /var/run"
( find /var/lock -type f -exec rm -f \{\} \; 1>&2 )

which doesn't need xargs and hence avoids the problem.

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.22-rc2-ac3 i686 VIA Nehemiah
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt encode gif imlib java jpeg kde libg++
libwww mad mikmod mmx mpeg ncurses nls oggvorbis opengl png quicktime sdl slang
spell svga truetype xml2 zlib gdbm berkdb readline gpm tcpd pam ssl python acpi
alsa cdr -cups curl -foomaticdb -gnome -pdflib perl samba sse -xmms -xv usb -X
-gtk -qt -motif"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 SpanKY gentoo-dev 2003-08-21 22:22:49 UTC

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