Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129717 - >=baselayout-1.12.0_pre17 svcdir readonly variable
Summary: >=baselayout-1.12.0_pre17 svcdir readonly variable
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 130050 130773 132534 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-12 10:55 UTC by gringo
Modified: 2007-07-19 19:00 UTC (History)
6 users (show)

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


Attachments
rc file (rc,6.87 KB, application/octet-stream)
2006-04-13 22:56 UTC, Tarik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gringo 2006-04-12 10:55:15 UTC
after updating to baselayout-1.12.0_pre17, i bassically see that the cachedir /var/lib/init.d/ isnt created and cant be accessed. 

System boots fine but gives an:

/etc/conf.d/rc line 193 svcdir: readonly variable

on every service it starts.

It does not matter if you put svcmount in rc to yes or no, errors are the same.
Same problem with baselayout-1.12.0_pre17-r1.
Mount says:
svcdir on /var/lib/init.d type tmpfs (rw,mode=0755,size=2048k)


emerge --info follows ( with working baselayout):

Portage 2.1_pre7-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.16-rc6-fent1 x86_64)
=================================================================
System uname: 2.6.16-rc6-fent1 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.intergenia.de/ http://linuv.uv.es/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.caliu.info/pub/gentoo/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LDFLAGS="-Wl,-O1 Wl,--as-needed"
LINGUAS="es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acl alsa apache2 avi bash-completion berkdb bitmap-fonts cairo cdrw cli crypt ctype cups dba dbus dga dvd dvdr dvdread emboss encode expat fastbuild fbcon ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gif glitz gnome gpm gtk gtk2 hal hotplug imlib ipv6 isdnlog ithreads java jpeg lzw lzw-tiff maildir memlimit mp3 mpeg ncurses nls nptl nsplugin nvidia offensive ogg oggvorbis opengl pam pascal pcre pdflib perl pic png posix pppd python qt quicktime readline sasl sdl session simplexml soap sockets spell spl ssl svg tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd xml xosd xpm xsl xv xvid zlib elibc_glibc input_devices_keyboard input_devices_evdev input_devices_mouse kernel_linux linguas_es userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-12 11:05:08 UTC
# mount | grep svcdir
svcdir on /var/lib/init.d type tmpfs (rw,mode=0755,size=2048k)

(same with baselayout-1.12.0_pre17 and -r1)
Comment 2 SpanKY gentoo-dev 2006-04-12 12:11:11 UTC
the mount output is pointless

post your /etc/conf.d/rc file as an attachment
Comment 3 Tarik 2006-04-13 22:56:43 UTC
Created attachment 84609 [details]
rc file

RC file from a system affected by the "svcdir readonly variable" bug following baselayout upgrade to baselayout-1.12.0_pre17
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-04-15 04:57:14 UTC
*** Bug 130050 has been marked as a duplicate of this bug. ***
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-04-20 09:37:08 UTC
What version of splashutils do you guys have installed?
Comment 6 Tarik 2006-04-20 16:16:16 UTC
I have splashutils-1.1.9.8. I'll upgrade to 1.1.9.8-r1 and see if that makes a difference.
Comment 7 Tarik 2006-04-20 16:25:15 UTC
Upgrading splashutils from 1.1.9.8 to 1.1.9.8-r1 fixes the problem. This bug should probably be closed now.
Comment 8 SpanKY gentoo-dev 2006-04-20 16:43:30 UTC
k
Comment 9 Olaf Walkowiak 2006-04-20 23:34:11 UTC
splashutils 1.1.9.10 here, now emerging splashutils-1.1.9.10-r1

I have the same problem
Comment 10 Roy Marples (RETIRED) gentoo-dev 2006-04-21 00:20:15 UTC
1.1.9.8-r1 and splashutils-1.1.9.10-r1 have been patched for sometime now, the versions you have aren't even in portage anymore!
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-04-21 14:20:04 UTC
*** Bug 130773 has been marked as a duplicate of this bug. ***
Comment 12 gringo 2006-04-24 02:33:21 UTC
sorry for my late answer. Latest splashutils did the trick here too :D
Comment 13 SpanKY gentoo-dev 2006-05-07 03:16:25 UTC
*** Bug 132534 has been marked as a duplicate of this bug. ***
Comment 14 Sandro Bonazzola (RETIRED) gentoo-dev 2006-05-22 11:35:56 UTC
Solution verified, I had the same problem, works fine for me.
Comment 15 Joseph 2006-08-12 15:03:49 UTC
After emerging baselayout-1.12.4-r2 I'm getting the same error:
during boot:
/etc/config.d/rc: line 225: svcdir: readonly variable
/sbin/functions.sh: line 10: declare: svclib: readonly variable
/sbin/functions.sh: line 11: declare: svcdir: readonly variable

during shutdown:
/etc/config.d/rc: line 225: svcdir: readonly variable
/sbin/functions.sh: line 10: declare: svclib: readonly variable
/sbin/functions.sh: line 11: declare: svcdir: readonly variable
/sbin/functions.sh: line 125: BOOTLEVEL: readonly variable
/sbin/functions.sh: line 131: DEFAULTLEVEL: readonly variable

And NO, I don't have "splashutils" installed.
Comment 16 SpanKY gentoo-dev 2006-08-12 17:21:33 UTC
i dont know what "/etc/config.d/rc" is but it certainly does not come from baselayout -> you have something on your system breaking this, baselayout is not broken
Comment 17 Joseph 2006-08-12 18:04:48 UTC
(In reply to comment #16)
> i dont know what "/etc/config.d/rc" is but it certainly does not come from
> baselayout -> you have something on your system breaking this, baselayout is
> not broken 

I think it could be related to the fact that with baselayout-1.12.4-r2 /sbin/functions.sh has changed, it contains this section (at the top):
# Check /etc/conf.d/rc for a description of these ...
declare -r svclib="/lib/rcscripts"
declare -r svcdir="${svcdir:-/var/lib/init.d}"
svcmount="${svcmount:-no}"
svcfstype="${svcfstype:-tmpfs}"
svcsize="${svcsize:-1024}"

Where as baselayout-1.11.15-r3 "functions.sh" on my other systems doesn't have this section.
Comment 18 SpanKY gentoo-dev 2006-08-12 18:49:38 UTC
what's your point ?  those variables are *supposed* to be readonly
Comment 19 Roy Marples (RETIRED) gentoo-dev 2006-08-13 11:10:35 UTC
Also, some forum guys have reported that they have /sbin/livecd-functions.sh present which causes the same issue.

If it's present it should be removed as it's only meant for livecds and not actual installs.
Comment 20 Joseph 2006-08-13 11:13:55 UTC
in my case the problem was caused by:
/sbin/livecd-functions.sh  
removing this file solved the problem, no extra messages during boot.