From: Ray Strode Date: Thu, 6 May 2010 14:57:33 +0000 (-0400) Subject: [main] Save progress cache file earlier X-Git-Tag: 0.8.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4da25e407c307bfb3bce5cb3caeee97800642bf3;p=thirdparty%2Fplymouth.git [main] Save progress cache file earlier The cache file record milestones during boot, so we should write it out: 1) only after the root filesystem is mounted 2) as soon as we're no longer going to get updates about boot progress. --- diff --git a/src/main.c b/src/main.c index 13fed2b6..e622755f 100644 --- a/src/main.c +++ b/src/main.c @@ -1003,6 +1003,10 @@ on_quit (state_t *state, return; } + if (state->system_initialized) + ply_progress_save_cache (state->progress, + get_cache_file_for_mode (state->mode)); + state->quit_trigger = quit_trigger; state->should_retain_splash = retain_splash; @@ -1959,9 +1963,6 @@ main (int argc, exit_code = ply_event_loop_run (state.loop); ply_trace ("exited event loop"); - ply_progress_save_cache (state.progress, - get_cache_file_for_mode (state.mode)); - ply_boot_splash_free (state.boot_splash); state.boot_splash = NULL;