[Pkg-sysvinit-devel] Bug#423095: sysvinit: Allow bootsplash packages to hook into fsck events

David Härdeman david at hardeman.nu
Fri May 11 08:42:40 UTC 2007


On Thu, May 10, 2007 23:44, Tim Dijkstra said:
>> # Tells the splash the current boot progress in percent (as $1)
>> splash_progress () { return 0; }
>
> How would an init script know at what the progress is? Or is this meant
> for updating the progress bar in the case of a fsck?

init knows how far along the boot/shutdown progress is (by counting the
number of scripts in rcS and rc2). /etc/init.d/rc[S] already has this
functionality.

> Also the splash_quit can be nice. My last idea was to trigger on calls
> to log_daemon_msg from gdm/kdm/xdm. But splash_quit is more explicit...

Yes, usplash has the same hack right now, but adding splash_quit to the
*dm scripts seems much saner.

And on a related note, perhaps the splash_start_fsck and splash_stop_fsck
functions should be renamed to splash_start_indefinate_process and
splash_finish_indefinite_process as it is more generic and that is the
message that needs to be conveyed to the user anyway (that the next step
is going to take an unknown, and possibly large, amount of time).

-- 
David Härdeman





More information about the Pkg-sysvinit-devel mailing list