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

Bug 126512

Summary: ctrl-c when starting init.d service breaks deptree
Product: Gentoo Linux Reporter: Marko Djukic <djukic>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor    
Priority: Normal    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marko Djukic 2006-03-17 03:51:53 UTC
If an init.d service is started and then interrupted by pressing ctrl-c at a certain point, the whole init.d collection is left unusable because /var/lib/init.d/deptree is missing. The error message was:

# /etc/init.d/net.eth0 start
/lib/rcscripts/sh/rc-services.sh: line 22: /var/lib/init.d/deptree: No such file or directory

 * Dependency info is missing!  Please run

 *   # /sbin/depscan.sh

 * to fix this.


Running /sbin/depscan.sh had no effect, machine could not reboot or start any services. This was fixed by having to re-emerge baselayout and rebooting.

I am guessing that at some point the rc scripts update the deptree file, and it is first removed then recreated. Could this be fixed by creating a temporary file then just copying it over once created fully? To not leave the machine in a half-broken state?
Comment 1 SpanKY gentoo-dev 2006-04-18 17:10:04 UTC
you should have just run `depscan.sh -u`

depscan.sh will now ignore CTRL+C/CTRL+Z while booting