Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159999

Summary: depscan.sh fails with screwed up /etc/init.d, service init order corrupted
Product: Gentoo Linux Reporter: Majin Sniper <majinsniper>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Majin Sniper 2007-01-04 09:32:31 UTC
I somehow - don't ask me why or how it got there - had a symlink /etc/init.d/init.d pointing to /etc/init.d. This causes depscan.sh to fail and screw up the boot process (starting nfs before portmapper, keeping the system sleeping in a half initialized state for several minutes).
I took me about two month to find the problem. There were several posts in the Forum, which led me to a wrong direction.

The Error Message:
gawk: /lib/rcscripts/awk/cachedepends.awk:211: fatal: file `init.d' is a directory
bash: /var/lib/init.d/depcache: No such file or directory
Removing the link solved the problem, but a workaround in the cachedepends.awk would be nice :)

Greeting,
Majin Sniper
Comment 1 SpanKY gentoo-dev 2007-01-04 19:05:45 UTC
depscan.sh in svn makes sure that all links in /etc/init.d/ point to files