/sbin/functions.sh on line 10 & 11 declares; declare -r svclib="/lib/rcscripts" declare -r svcdir="${svcdir:-/var/lib/init.d}" Which means they are defined as read-only, which my system complains about at boot time. I am using genkernel to make my initrd and kernel. This can be fixed by removing the -r from these lines, but I do not know if this is a correct fix or not. The problem has been discussed and solved in: http://forums.gentoo.org/viewtopic-t-452643.html emerge --info Portage 2.1_rc3-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0 ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=i586 -O2 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=i586 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo" LANG="en_US" LC_ALL="en_US" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X aalib alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdr cdroot chroot cli crypt cups dio dri dvd dvdr eds emboss encode esd fbcon foomaticdb fortran ftp fuse gdbm gif gpm gstreamer gtk gtk2 icq imlib iproute2 ipv6 isdnlog jabber java javascript jpeg libg++ libwww livecd mad mhash mikmod mime motif mp3 mpeg msn ncurses nls nptl ntfs ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection reiser4 reiserfs samba sdl session sockets socks5 spell spl ssl svga tcpd truetype truetype-fonts type1-fonts udev usb userlocales vorbis xml xmms xorg xv yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_-evdev input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_-joystick input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_-synaptics% input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void kernel_linux linguas_en userland_GNU video_cards_i128 video_cards_mga video_cards_savage video_cards_-apm video_cards_-ark video_cards_ati* video_cards_-chips video_cards_cirrus video_cards_-cyrix video_cards_dummy video_cards_fbdev video_cards_-fglrx% video_cards_-glint video_cards_i740 video_cards_i810 video_cards_-imstt video_cards_-neomagic video_cards_-newport video_cards_-nsc video_cards_nv video_cards_nvidia% video_cards_-rendition video_cards_s3 video_cards_s3virge video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_-sunbw2 video_cards_-suncg14 video_cards_-suncg3 video_cards_-suncg6 video_cards_-sunleo video_cards_-suntcx video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_-vmware video_cards_voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The same goes for line 819; declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL Which gives me some error's at shutdown
They are marked readonly so that any 3rd party scripts that want to hook into Gentoo services don't mess around with things they shouldn't - this is not a baselayout error you're seeing, it's something either 1) Loading functions.sh AGAIN which is in itself an error 2) Trying to change a read only variable which it has no reason to - again, an error with the script and not baselayout. The packages I know of that misbehave like this are splash-utils and vserver stuff, but the latest ones in portage should have the fix. You need to work out which script is mis-behaving here.