Commit 5d030417 authored by Mike Hibler's avatar Mike Hibler

Stated fu to make sure Moonshot ARM reloads go smoothly.

parent 0053d7d1
......@@ -439,6 +439,7 @@ REPLACE INTO state_timeouts VALUES ('WIMRELOAD','SHUTDOWN',240,'REBOOT');
REPLACE INTO state_timeouts VALUES ('WIMRELOAD','RELOADSETUP',60,'NOTIFY');
REPLACE INTO state_timeouts VALUES ('WIMRELOAD','RELOADING',1800,'NOTIFY');
REPLACE INTO state_timeouts VALUES ('WIMRELOAD','RELOADDONE',60,'NOTIFY');
REPLACE INTO state_timeouts VALUES ('PXEKERNEL','PXEBOOTING',120,'REBOOT');
--
-- Dumping data for table `state_transitions`
......@@ -707,6 +708,8 @@ REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADING','RELOADFAILED',
REPLACE INTO state_transitions VALUES ('RELOAD-PCVM','RELOADFAILED','SHUTDOWN','');
REPLACE INTO state_transitions VALUES ('RELOAD-UE','RELOADING','RELOADDONE','ReloadDone');
REPLACE INTO state_transitions VALUES ('RELOAD-UE','SHUTDOWN','RELOADING','Booting');
REPLACE INTO state_transitions VALUES ('NORMALv2','BOOTING','PXEWAIT','MoonshotPxeWait');
REPLACE INTO state_transitions VALUES ('PXEKERNEL','PXEWAKEUP','SHUTDOWN','MoonshotBootDisk');
--
-- Dumping data for table `state_triggers`
......@@ -741,6 +744,7 @@ REPLACE INTO state_triggers VALUES ('*','WIMRELOAD','PXEBOOTING','REBOOT');
REPLACE INTO state_triggers VALUES ('*','WIMRELOAD','BOOTING','REBOOT');
REPLACE INTO state_triggers VALUES ('*','WIMRELOAD','ISUP','REBOOT');
REPLACE INTO state_triggers VALUES ('*','RELOAD-UE','RELOADDONE','RELOADDONE');
REPLACE INTO state_triggers VALUES ('*','NORMALv2','PXEWAIT','PXEBOOT');
--
-- Dumping data for table `table_regex`
......
#
# Stated stuff for Moonshot ARM cartridges.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO state_timeouts VALUES ".
"('PXEKERNEL','PXEBOOTING',120,'REBOOT')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('NORMALv2','BOOTING','PXEWAIT','MoonshotPxeWait')");
DBQueryFatal("REPLACE INTO state_transitions VALUES ".
"('PXEKERNEL','PXEWAKEUP','SHUTDOWN','MoonshotBootDisk')");
DBQueryFatal("REPLACE INTO state_triggers VALUES ".
"('*','NORMALv2','PXEWAIT','PXEBOOT')");
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