[systemd-devel] How to implement fsck progress report with systemd and plymouth?

fykcee1 at gmail.com fykcee1 at gmail.com
Wed Apr 27 02:04:16 PDT 2011


Hi,

2011/4/27 Lennart Poettering <lennart at poettering.net>:
> I would suggest to leave the parsing of the fsck -C output to fsckd, as
> well as the integration of multiple of these streams. fsckd would then
> only pass one stream of progress bar information to plymouth. The
> handling in Plymouth would be very simple: you'd just add a single
> request which gets a percentage. You show the bar on the first of those
> you get, you hide the bar if the percentage you get is >= 100. And all
> the dirty stuff would stay in fsckd. fsckd would probably just take the
> minimum of the most recent percentage data from all its clients and pass
> that on to plymouth.
I'm currently trying to do similar, but:
1. Parsing "fsck -C" output in systemd-fsck. All instances of
systemd-fsck send this progress status to plymouth, and let theme
decide how to display them on screen.
2. If user press e.g. 'C' to cancel a certain fsck job, then plymouth
will send SIGINT to corresponding instance of systemd-fsck.

This saves fsckd in "plymouth <-> fsckd <-> n * systemd-fsck".



-- 
Regards,
- cee1


More information about the systemd-devel mailing list