From 8198851baa6dd00651946eef92d0353ff96d1f1d Mon Sep 17 00:00:00 2001
From: Stephen Soltesz <soltesz@cs.princeton.edu>
Date: Fri, 25 Jul 2008 20:58:11 +0000
Subject: [PATCH] Add new bootstates to db-config, for trunk versions of
 PLCAPI, PLCWWW, BootManager

---
 db-config | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/db-config b/db-config
index 66e707b..aa76bb0 100755
--- a/db-config
+++ b/db-config
@@ -1044,6 +1044,26 @@ message, please reply so that we may investigate the problem.
             for ptype in protocol_types:
                 AddPCUProtocolType(id, ptype)
 
+	default_boot_states = [
+		'boot',
+		'failboot',
+		'safeboot',
+		'install',
+		'reinstall',
+		'disabled',
+	]
+
+	current_boot_states = GetBootStates()
+	for state in default_boot_states:
+		if state not in current_boot_states:
+			AddBootState(state)
+
+	# TODO: Delete old boot states. 
+	# NOTE: Only do this if all federating peers have the new default boot states above.
+	#for state in current_boot_states:
+	#	if state not in default_boot_states:
+	#		DeleteBootState(state)
+
 
 if __name__ == '__main__':
     main()
-- 
2.47.0