Upgrade organization improvements.

This commit is contained in:
Jeffrey Townsend
2016-05-27 19:46:53 +00:00
parent a6520e533c
commit b03cc37db0
3 changed files with 5 additions and 31 deletions

View File

@@ -1,3 +0,0 @@
#!/usr/bin/python
from onl.mounts import OnlMountManager
OnlMountManager.main()

View File

@@ -1,3 +0,0 @@
#!/usr/bin/python
from onl.pki import OnlPKI
OnlPKI.main()

View File

@@ -13,6 +13,7 @@ import shutil
import json
import string
import argparse
import yaml
from time import sleep
from onl.platform.current import OnlPlatform
@@ -36,32 +37,11 @@ class BaseUpgrade(object):
self.arch = pp.machine()
self.parch = dict(ppc='powerpc', x86_64='amd64', armv7l='armel')[self.arch]
self.platform = OnlPlatform()
self.init()
def init(self):
pass
#
# TODO.
#
# DEFAULT_CONFIG = {
# "auto-upgrade" : "advisory",
# }
#
# CONFIG_FILES = [
# "/etc/boot.d/upgrade/.upgrade-config.json",
# "/mnt/flash/override-upgrade-config.json"
# ]
#
# def load_config(self):
# self.config = self.DEFAULT_CONFIG
# for f in self.CONFIG_FILES:
# if os.path.exists(f):
# self.config.update(json.load(file(f)))
#
# self.logger.debug("Loaded Configuration:\n%s\n" % (json.dumps(self.config, indent=2)))
#
# if self.name in self.config:
# self.config = self.config['name']
#
# self.logger.debug("Final Configuration:\n%s\n" % (json.dumps(self.config, indent=2)))
#
def load_config(self):
pass