Commit a4968722 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent a15ba913
......@@ -1147,6 +1147,9 @@ sub wait_for_monitor;
sub reboot {
my ($time) = @_;
# Make sure everything has been written to disk
run_ssh("sync");
if (defined($time)) {
start_monitor;
# flush out current monitor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment