In depscan.sh, the following block should create the directories under /var/lib/init.d if they do not exist. for x in ${svcdir} softscripts snapshot options started do if [ ! -d "${x}" ] then if ! mkdir -p -m 0755 "${svcdir}/${x}" 2>/dev/null then eerror " Could not create needed directory '${svcdir}/${ x}'!" fi fi done It fails, because the condition for checking the existance of directory, -d "${x}", does not include the whole path. The correct test would be -d "${svcdir}/${x}". This caused my computer to start looping in boot right after running depscan.sh, because it tried to mark services as started, but as "started" directory did not exist, it couldn't. This problem started when my root partition crashed, and for some reason directory called "started" appeared in my root directory. Reproducible: Always Steps to Reproduce: 1.Create directory /started 2.Run depscan.sh while chdir=/ Actual Results: /var/lib/init.d was empty, and computer unable to continue booting. Expected Results:
Thanks, I've applied this fix in the rc-scripts cvs, will mark this bug resolved when I'm able to release an updated baselayout ebuild
Fixed in baselayout-1.8.9