提交 a4968722 编写于 作者: S Steven Rostedt 提交者: 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: NSteven Rostedt <rostedt@goodmis.org>
上级 a15ba913
...@@ -1147,6 +1147,9 @@ sub wait_for_monitor; ...@@ -1147,6 +1147,9 @@ sub wait_for_monitor;
sub reboot { sub reboot {
my ($time) = @_; my ($time) = @_;
# Make sure everything has been written to disk
run_ssh("sync");
if (defined($time)) { if (defined($time)) {
start_monitor; start_monitor;
# flush out current monitor # flush out current monitor
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册