I've searched the forums, bugzilla and Google and come up with nothing that resembles my problem, so I'm filing a new bug report in the hope that someone can help me fix this problem. I've just install Gentoo on my Acer TravelMate 220. Nearing the end of the install (not sure where, sorry), and now I'm actually booting to my system, I'm getting a lot of errors. They *only* look like this: After "*Caching service dependancies..." part of bootup, and after using rc-update, I'm getting plenty of errors like: /var/lib/init.d/depcache: line 1: 1#: command not found Then, throughout most of the next steps of bootup I'm getting errors like: /sbin/rc: line 1: 1#: command not found This problem doesn't appear to make my system break, except for a few things that aren't related, everything appears to be fine. However, it is unsightly when I'm trying to show off my Gentoo laptop to my collegues. :P Any help would be nice as I consider this a bug. Thanks. Reproducible: Always Steps to Reproduce: 1. Boot up OR rc-update 2. 3. Actual Results: Everything appears fine, but it's rather unsightly and I'd like a resolution if possible. Expected Results: No errors. Gentoo Base System version 1.4.10 Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5) ================================================================= System uname: 2.6.5 i686 Mobile Intel(R) Celeron(TM) CPU 1333MHz Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm avi berkdb cdr crypt cups curl dga directfb divx4linux dvd encode fbcon foomaticdb gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml imagemagick imlib java jikes jpeg kerberos krb4 ldap libg++ libwww mad mikmod mmx motif mozilla mpeg msn ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png pnp python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype unicode usb wmf x86 xml xml2 xmms xv xvid zlib"
take a look at bug #34478, bug #47111, attach your /var/lib/init.d/deptree and /var/lib/init.d/depcache.
Created attachment 30971 [details] /etc/init.d/depscan
Created attachment 30972 [details] bash -x /etc/init.d/depscan.sh depscan.sh running with bash -x for debugging.
Created attachment 30973 [details] /var/lib/init.d/depcache My depcache file. Needless to say, the two bugs pointed out hold nothing that seems to work for me.
Fixed it. Was my own stupidity. I think. rm /etc/rc.conf emerge baselayout vim /etc/rc.conf Fixed the problem. Not sure why, but it did.