dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Steven Rostedt 2012-12-11 14:59:05 -05:00 committed by Steven Rostedt
parent a15ba91361
commit a496872212
1 changed files with 3 additions and 0 deletions

View File

@ -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