Skip to content

Commit a496872

Browse files
Steven Rostedtrostedt
authored andcommitted
ktest: Sync before reboot
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>
1 parent a15ba91 commit a496872

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,9 @@ sub doprint {
11471147
sub reboot {
11481148
my ($time) = @_;
11491149

1150+
# Make sure everything has been written to disk
1151+
run_ssh("sync");
1152+
11501153
if (defined($time)) {
11511154
start_monitor;
11521155
# flush out current monitor

0 commit comments

Comments
 (0)