[Splashy-devel] Bug#487412: Bug#487412: splashy: does not play fine with file-rc

Niko Cavallini Araya niko.cava at gmail.com
Mon Jul 28 22:18:26 UTC 2008


Hi, lets see,
On Sat, Jun 21, 2008 at 10:56 AM, Marc Haber
<mh+debian-bugs at zugschlus.de> wrote:
> file-rc is a package that provides a sysv-rc interface and replaces
> the runlevel startup links with a single configuration file
> /etc/runlevel.conf.

So file-rc replaces /etc/rc* with a single /etc/runlevel.conf, that is
neet but in splashy (at least in debian) the progress bar steps
are calculated from /etc/init.d/splashy in calculate_steps()

--------------------------------------------------------------------------------------------
># While booting rcS will also be executed
># we only care about the scripts that actually call log_end_msg
># if not we could end up never completing our progress bar!
>grep -l log_end_msg /etc/rcS.d/S* > $TMP 2> /dev/null || true
>
>for ILVL in ${RLVL:=2} 0 6; do
>    # in debian rc.local runs log_end_msg conditionally. we simply skip that
>    grep -l log_end_msg /etc/rc$ILVL.d/[KS]* 2> /dev/null | grep -v rc.local >> $TMP  || true
>    NR=`sed -n -e '$=' $TMP`
>    I=1
>    for SCR in `cat $TMP`; do
>        echo "$SCR $(($I*100/$NR))"
>        I=$(($I+1))
>    done > "$STEPS_DIR/$ILVL-progress"
>....
---------------------------------------------------------------------------------------------

So, (help me here) we are parsing /etc/rc* looking for log_end_msg and
all hits become a step in the progress bar.

The problem is that if file-rc is installed there are no /etc/rc* to
parse so no steps. This
is why the system boots correctly but no steps are detected.

As this is the fundamental change that file-rc does its up to splashy
to support file-rc
or to use some other method be more rc agnostic (if that exists).

-- 
Saludos
 Niko





More information about the Splashy-devel mailing list