コード例 #1
0
    def reset(self):
        # Reset everything except:
        #
        #	- The mouse
        #	- The install language
        #	- The keyboard

        self.langSupport = language.Language()
        self.instClass = None
        self.network = network.Network()
        self.firewall = firewall.Firewall()
        self.security = security.Security()
        self.timezone = timezone.Timezone()
        self.accounts = users.Accounts()
        self.rootPassword = users.RootPassword()
        self.auth = users.Authentication()
        self.desktop = desktop.Desktop()
        self.grpset = None
        self.upgrade = Boolean()
        # XXX move fsset and/or diskset into Partitions object?
        self.fsset.reset()
        self.diskset = partedUtils.DiskSet()
        self.partitions = partitions.Partitions()
        self.bootloader = bootloader.getBootloader()
        self.dependencies = []
        self.handleDeps = CHECK_DEPS
        self.dbpath = None
        self.upgradeRoot = None
        self.rootParts = None
        self.upgradeSwapInfo = None
        self.upgradeDeps = ""
        self.upgradeRemove = []
        self.upgradeInfoFound = None
        self.configFileData = self.tmpData
        self.firstboot = FIRSTBOOT_DEFAULT
コード例 #2
0
ファイル: instdata.py プロジェクト: abiquo/anaconda-ee
    def reset(self):
        # Reset everything except: 
        #
        #	- The mouse
        #	- The install language
        #	- The keyboard

        self.instClass = None
        self.network = network.Network()
        self.iscsi = iscsi.iscsi()
        self.zfcp = zfcp.ZFCP()
        self.firewall = firewall.Firewall()
        self.security = security.Security()
        self.timezone = timezone.Timezone()
        self.abiquo = abiquo.Abiquo()
        self.abiquo_rs = abiquo_rs.AbiquoRS()
        self.abiquo_v2v = abiquo_v2v.AbiquoV2V()
        self.users = None
        self.rootPassword = { "isCrypted": False, "password": "" }
        self.abiquoPassword = "******"
        self.abiquoPasswordHex = "c69a39bd64ffb77ea7ee3369dce742f3"
        self.auth = "--enableshadow --enablemd5"
        self.desktop = desktop.Desktop()
        self.upgrade = None
        # XXX move fsset and/or diskset into Partitions object?
        self.fsset.reset()
        self.diskset = partedUtils.DiskSet(self.anaconda)
        self.partitions = partitions.Partitions()
        self.bootloader = bootloader.getBootloader()
        self.dependencies = []
        self.dbpath = None
        self.upgradeRoot = None
        self.rootParts = None
        self.upgradeSwapInfo = None
        self.upgradeDeps = ""
        self.upgradeRemove = []
        self.upgradeInfoFound = None

        if rhpl.getArch() == "s390":
            self.firstboot = FIRSTBOOT_SKIP
        else:
            self.firstboot = FIRSTBOOT_DEFAULT

        # XXX I expect this to die in the future when we have a single data
        # class and translate ksdata into that instead.
        self.ksdata = None
コード例 #3
0
ファイル: instdata.py プロジェクト: rossonet/Strumenti-RCloud
    def reset(self):
        # Reset everything except:
        #
        #	- The mouse
        #	- The install language
        #	- The keyboard

        self.instClass = None
        self.network = network.Network()
        self.iscsi = iscsi.iscsi()
        self.zfcp = zfcp.ZFCP()
        self.firewall = firewall.Firewall()
        self.security = security.Security()
        self.timezone = timezone.Timezone()
        self.users = None
        self.rootPassword = {"isCrypted": False, "password": ""}
        self.auth = "--enableshadow --enablemd5"
        self.desktop = desktop.Desktop()
        self.upgrade = None
        # XXX move fsset and/or diskset into Partitions object?
        self.fsset.reset()
        self.diskset = partedUtils.DiskSet(self.anaconda)
        self.partitions = partitions.Partitions()
        self.bootloader = bootloader.getBootloader()
        self.dependencies = []
        self.dbpath = None
        self.upgradeRoot = None
        self.rootParts = None
        self.upgradeSwapInfo = None
        self.upgradeDeps = ""
        self.upgradeRemove = []
        self.upgradeInfoFound = None

        if rhpl.getArch() == "s390":
            self.firstboot = FIRSTBOOT_SKIP
        else:
            self.firstboot = FIRSTBOOT_DEFAULT

    # XXX I expect this to die in the future when we have a single data
    # class and translate ksdata into that instead.
        self.ksdata = None
コード例 #4
0
ファイル: msm_unlock.py プロジェクト: methos2016/MSMUnlock
    appPort = None
    baud = 115200
    Init = True
    didProbe = False

    for o, a in opts:
        if o in ("-d", "--diagPort"):
            diagPort = a
        if o in ("-a", "--appPort"):
            appPort = a
        elif o in ("-h", "--help"):
            usage()
            sys.exit()

    print "Checking bootloader..."
    if not bootloader.getBootloader():
        print "ERROR: The bootloader has not been found. Please place a correct file 'Superfire.exe' in this folder."
        if (os.name == 'nt'):
            raw_input()
        sys.exit(-1)
    print "Bootloader OK, proceeding..."
    print ""

    if (os.name == 'posix') and ((appPort == None) or (diagPort == None)):
        print "Searching for serial ports..."
        (appPort, diagPort) = findSerialPorts("/dev/ttyHS%d")
        didProbe = True
    if (os.name == 'nt') and ((appPort == None) or (diagPort == None)):
        print "Searching for serial ports..."
        (appPort, diagPort) = findSerialPorts("COM%d")
        didProbe = True
コード例 #5
0
ファイル: msm_unlock.py プロジェクト: dogbert/MSMUnlock
	appPort  = None
	baud	 = 115200
	Init	 = True
	didProbe = False

	for o, a in opts:
		if o in ("-d", "--diagPort"):
			diagPort = a
		if o in ("-a", "--appPort"):
			appPort = a
		elif o in ("-h", "--help"):
			usage()
			sys.exit()

	print "Checking bootloader..."
	if not bootloader.getBootloader():
		print "ERROR: The bootloader has not been found. Please place a correct file 'Superfire.exe' in this folder."
		if (os.name == 'nt'):
			raw_input()
		sys.exit(-1)
	print "Bootloader OK, proceeding..."
	print ""

	if (os.name == 'posix') and ((appPort == None) or (diagPort == None)):
		print "Searching for serial ports..."
		(appPort, diagPort) = findSerialPorts("/dev/ttyHS%d")
		didProbe = True
	if (os.name == 'nt') and ((appPort == None) or (diagPort == None)):
		print "Searching for serial ports..."
		(appPort, diagPort) = findSerialPorts("COM%d")
		didProbe = True