Skip to content

Commit

Permalink
ktest: Sync before reboot
Browse files Browse the repository at this point in the history
Before rebooting the target, run the sync command, as it seems that
either Grub2 or systemd gets screwed up if you update to reboot a kernel
once and do a reboot without doing a sync.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 11, 2012
1 parent a15ba91 commit a496872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,9 @@ sub doprint {
sub reboot {
my ($time) = @_;

# Make sure everything has been written to disk
run_ssh("sync");

if (defined($time)) {
start_monitor;
# flush out current monitor
Expand Down

0 comments on commit a496872

Please sign in to comment.