Commit 958286a3 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fixes to the RELOAD-PCVM state machine.

parent cd08436c
......@@ -321,6 +321,8 @@ REPLACE INTO mode_transitions VALUES ('ALWAYSUP','ISUP','RELOAD-MOTE','ISUP','Re
REPLACE INTO mode_transitions VALUES ('RELOAD-MOTE','SHUTDOWN','ALWAYSUP','ISUP','ReloadDone');
REPLACE INTO mode_transitions VALUES ('PCVM','SHUTDOWN','RELOAD-PCVM','SHUTDOWN','ReloadSetup');
REPLACE INTO mode_transitions VALUES ('RELOAD-PCVM','SHUTDOWN','PCVM','SHUTDOWN','ReloadDone');
REPLACE INTO mode_transitions VALUES ('RELOAD-PCVM','RELOADDONE','NORMALv2','SHUTDOWN','');
REPLACE INTO mode_transitions VALUES ('RELOAD-PCVM','SHUTDOWN','NORMALv2','SHUTDOWN','');
REPLACE INTO mode_transitions VALUES ('RELOAD-PUSH','SHUTDOWN','MINIMAL','SHUTDOWN','ReloadDone');
REPLACE INTO mode_transitions VALUES ('MINIMAL','SHUTDOWN','RELOAD-PUSH','SHUTDOWN','ReloadStart');
REPLACE INTO mode_transitions VALUES ('SECUREBOOT','TPMSIGNOFF','MINIMAL','SHUTDOWN','');
......@@ -614,10 +616,13 @@ REPLACE INTO state_transitions VALUES ('GARCIA-STARGATEv1','TBSETUP','TBFAILED',
REPLACE INTO state_transitions VALUES ('GARCIA-STARGATEv1','TBFAILED','SHUTDOWN','RebootAfterFail');
REPLACE INTO state_transitions VALUES ('RELOAD','RELOADSETUP','RELOADOLDMFS','');
REPLACE INTO state_transitions VALUES ('RELOAD','RELOADOLDMFS','SHUTDOWN','');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADSETUP','RELOADING','ReloadStart');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADING','RELOADDONE','ReloadDone');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADDONE','SHUTDOWN','ReloadDone');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','SHUTDOWN','RELOADSETUP','ReloadSetup');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','BOOTING','RELOADSETUP','ReloadSetup');
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','SHUTDOWN','BOOTING','Booting');
REPLACE INTO state_transitions VALUES ('RELOAD','BOOTING','TBSETUP','FailedBoot');
REPLACE INTO state_transitions VALUES ('RELOAD','TBSETUP','ISUP','FailedBoot');
REPLACE INTO state_transitions VALUES ('RELOAD','TBSETUP','TBFAILED','FailedBoot');
......
#
# Fixes to the RELOAD-PCVM state machine.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
#
# Remove the old entries
#
DBQueryFatal("delete from mode_transitions ".
"where op_mode1='RELOAD-PCVM'");
DBQueryFatal("delete from state_transitions ".
"where op_mode='RELOAD-PCVM'");
DBQueryFatal("REPLACE INTO mode_transitions VALUES" .
" ('RELOAD-PCVM','SHUTDOWN','PCVM','SHUTDOWN','ReloadDone')");
DBQueryFatal("REPLACE INTO mode_transitions VALUES" .
" ('RELOAD-PCVM','RELOADDONE','NORMALv2','SHUTDOWN','')");
DBQueryFatal("REPLACE INTO mode_transitions VALUES" .
" ('RELOAD-PCVM','SHUTDOWN','NORMALv2','SHUTDOWN','')");
DBQueryFatal("REPLACE INTO state_transitions VALUES" .
" ('RELOAD-PCVM','RELOADSETUP','RELOADING','ReloadStart')");
DBQueryFatal("REPLACE INTO state_transitions VALUES" .
" ('RELOAD-PCVM','RELOADING','RELOADDONE','ReloadDone')");
DBQueryFatal("REPLACE INTO state_transitions VALUES" .
" ('RELOAD-PCVM','RELOADDONE','SHUTDOWN','ReloadDone')");
DBQueryFatal("REPLACE INTO state_transitions VALUES" .
" ('RELOAD-PCVM','SHUTDOWN','BOOTING','Booting')");
DBQueryFatal("REPLACE INTO state_transitions VALUES" .
" ('RELOAD-PCVM','BOOTING','RELOADSETUP','ReloadSetup')");
return 0;
}
1;
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