| Summary: | genenviron.awk complains about missing /mnt/.init.d if svcdir was changed in /etc/conf.d/rc | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Max Kalika (RETIRED) <max> |
| Component: | [OLD] Core system | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | 1.4_rc1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
/sbin/depscan.sh for review
/sbin/rc-envupdate.sh file for review |
||
|
Description
Max Kalika (RETIRED)
2003-02-03 12:09:30 UTC
It is. /etc/conf.d/rc get sourced by /sbin/functions.sh, which gets sourced by /sbin/depscan.sh, which pass SVCDIR as $svcdir to genenviron.awk. Have a look at the 1.8.6.* ebuilds .. they *do* change the location of svcdir ... Check that /etc/init.d/functions.sh is a symlink to /sbin/functions.sh? Might be a old version that do not use /etc/conf.d/rc ... Or attach your /sbin/depscan.sh ... both /etc/init.d/functions.sh and /etc/init.d/depscan.sh are pointing to the correct locations:
valkyrie init.d # ls -l functions.sh
lrwxrwxrwx 1 root root 18 Jan 27 15:33 functions.sh -> /sbin/functions.sh
valkyrie init.d # ls -l depscan.sh
lrwxrwxrwx 1 root root 16 Jan 27 15:33 depscan.sh -> /sbin/depscan.sh
And depscan.sh is indeed using ${svcdir} when it is calling the awk scripts, although I don't see it calling genenviron.awk -- it seems to be only for service dependency caching. I'll attach depscan.sh and rc-envupdate.sh (which is where I saw the original problem).
Created attachment 7939 [details]
/sbin/depscan.sh for review
doesn't seem to be anything wrong here.
Created attachment 7940 [details]
/sbin/rc-envupdate.sh file for review
Notice the way it is starting up the awk scripts:
/bin/gawk -v SVCDIR="/mnt/.init.d"
Hmm, ok that one I missed. Worked this side as /mnt/.init.d/ still exited. Fixed on CVS, thanks: --------------------------------- 05 Feb 2003; Martin Schlemmer <azarah@gentoo.org>: Fix /sbin/rc-envupdate.sh to use $svcdir to set SVCDIR. This is thanks to Max Kalika <alkern23@yahoo.com>, bug #15050. --------------------------------- Works your side if you change it like depscan.sh ? I'm pretty sure this is fixed in the new baselayout. This can be closed. Yep. |