Пример #1
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag", permanent=1)
     if anaconda.id.displayMode == 'g':
         anaconda.dispatch.skipStep("tasksel", skip=1, permanent=1)
         anaconda.dispatch.skipStep("group-selection", skip=1, permanent=1)
    def setSteps(self, anaconda):
        BaseInstallClass.setSteps(self, anaconda)

        if os.path.exists("/tmp/rocks-skip-welcome"):
            anaconda.dispatch.skipStep("welcome", skip=1)
        else:
            anaconda.dispatch.skipStep("welcome", skip=0)

            #
            # skip the following 'graphical' screens
            #
        anaconda.dispatch.skipStep("parttype", skip=1)
        anaconda.dispatch.skipStep("filtertype", skip=1)
        anaconda.dispatch.skipStep("cleardiskssel", skip=1)
        anaconda.dispatch.skipStep("bootloader", permanent=1)
        anaconda.dispatch.skipStep("timezone", permanent=1)
        anaconda.dispatch.skipStep("accounts", permanent=1)
        anaconda.dispatch.skipStep("tasksel", permanent=1)

        if os.path.exists("/tmp/manual-partitioning"):
            anaconda.dispatch.skipStep("partition", skip=0)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=1)
        else:
            anaconda.dispatch.skipStep("partition", skip=1)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=0)

        anaconda.dispatch.skipStep("group-selection", permanent=1)
        anaconda.dispatch.skipStep("complete", permanent=1)

        # from gui import stepToClass
        from dispatch import installSteps
        from packages import turnOnFilesystems
        from rocks_getrolls import RocksGetRolls

        #
        # need to move the making of the file systems up before
        # we download the rolls.
        #
        # rocks doesn't use the 'timezone' or 'accounts' screens,
        # so we'll override them with our functions
        #
        # index = 0
        # for key in installSteps:
        # if key[0] == "timezone":
        # break
        # index = index + 1

        # installSteps[index] = ("rocksenablefilesystems",
        # turnOnFilesystems,)
        # anaconda.dispatch.skipStep("rocksenablefilesystems", skip = 0)
        # anaconda.dispatch.skipStep("enablefilesystems", skip = 1)

        index = 0
        for key in installSteps:
            if key[0] == "upgbootloader":
                break
            index = index + 1

        installSteps[index] = ("downloadrolls", RocksGetRolls)
        anaconda.dispatch.skipStep("downloadrolls", skip=0)
Пример #3
0
    def setInstallData(self, anaconda):
        BaseInstallClass.setInstallData(self, anaconda)
        self.setEarlySwapOn(1)
        self.anaconda = anaconda
        self.id = self.anaconda.id
        self.id.firstboot = FIRSTBOOT_SKIP

        # make sure our disks are alive
        from partedUtils import DiskSet
        ds = DiskSet(self.anaconda)
        ds.startMPath()
        ds.startDmRaid()

        # parse the %pre
        self.ksdata = KickstartData()
        self.ksparser = KickstartPreParser(self.ksdata, None)

        try:
            self.ksparser.readKickstart(self.file)
        except KickstartError, e:
            if anaconda.intf:
                anaconda.intf.kickstartErrorWindow(e.__str__())
                sys.exit(0)
            else:
                raise KickstartError, e
Пример #4
0
	def setSteps(self, anaconda):
		BaseInstallClass.setSteps(self, anaconda)

		os.system('touch /tmp/in-setSteps')

		if os.path.exists('/tmp/stack-skip-welcome'):
			anaconda.dispatch.skipStep("welcome", skip = 1)
		else:
			anaconda.dispatch.skipStep("welcome", skip = 0)

		#
		# skip the following 'graphical' screens
		#
		anaconda.dispatch.skipStep("parttype", skip = 1)
		anaconda.dispatch.skipStep("filtertype", skip = 1)
		anaconda.dispatch.skipStep("cleardiskssel", skip = 1)
		anaconda.dispatch.skipStep("bootloader", permanent = 1)
		anaconda.dispatch.skipStep("timezone", permanent = 1)
		anaconda.dispatch.skipStep("accounts", permanent = 1)
		anaconda.dispatch.skipStep("tasksel", permanent = 1)

		if os.path.exists('/tmp/manual-partitioning'):
			anaconda.dispatch.skipStep("partition", skip = 0)
			anaconda.dispatch.skipStep("autopartitionexecute",
				skip = 1)
		else:
			anaconda.dispatch.skipStep("partition", skip = 1)
			anaconda.dispatch.skipStep("autopartitionexecute",
				skip = 0)

		anaconda.dispatch.skipStep("group-selection", permanent = 1)
		anaconda.dispatch.skipStep("complete", permanent = 1)
Пример #5
0
    def setSteps(self, anaconda):
        BaseInstallClass.setSteps(self, anaconda)

        os.system('touch /tmp/in-setSteps')

        if os.path.exists('/tmp/stack-skip-welcome'):
            anaconda.dispatch.skipStep("welcome", skip=1)
        else:
            anaconda.dispatch.skipStep("welcome", skip=0)

        #
        # skip the following 'graphical' screens
        #
        anaconda.dispatch.skipStep("parttype", skip=1)
        anaconda.dispatch.skipStep("filtertype", skip=1)
        anaconda.dispatch.skipStep("cleardiskssel", skip=1)
        anaconda.dispatch.skipStep("bootloader", permanent=1)
        anaconda.dispatch.skipStep("timezone", permanent=1)
        anaconda.dispatch.skipStep("accounts", permanent=1)
        anaconda.dispatch.skipStep("tasksel", permanent=1)

        if os.path.exists('/tmp/manual-partitioning'):
            anaconda.dispatch.skipStep("partition", skip=0)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=1)
        else:
            anaconda.dispatch.skipStep("partition", skip=1)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=0)

        anaconda.dispatch.skipStep("group-selection", permanent=1)
        anaconda.dispatch.skipStep("complete", permanent=1)
Пример #6
0
    def setGroupSelection(self, grpset, intf):
        BaseInstallClass.__init__(self, grpset)

        grpset.unselectAll()

        grpset.selectGroup("workstation-common", asMeta=1)
        grpset.selectGroup("gnome-desktop")
Пример #7
0
    def setSteps(self, dispatch):
        BaseInstallClass.setSteps(self, dispatch)
        dispatch.skipStep("partition")
        dispatch.skipStep("authentication")

        dispatch.skipStep("desktopchoice", skip=0)
        dispatch.skipStep("package-selection", skip=1)
    def __init__(self, expert):
        BaseInstallClass.__init__(self, expert)

        self.repopaths = {"base": "%s" % (productPath,)}

        # minimally set up tasks in case no key is provided
        self.tasks = self.taskMap[productPath.lower()]
Пример #9
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag",permanent=1)
     if anaconda.id.displayMode == 'g':
         anaconda.dispatch.skipStep("tasksel", skip = 1, permanent=1)
         anaconda.dispatch.skipStep("group-selection", skip = 1, permanent=1)
    def setInstallData (self, anaconda):
        BaseInstallClass.setInstallData(self, anaconda)
        self.setEarlySwapOn(1)
        self.anaconda = anaconda
        self.id = self.anaconda.id
        self.id.firstboot = FIRSTBOOT_SKIP

        # make sure our disks are alive
        from partedUtils import DiskSet
        ds = DiskSet(self.anaconda)
        ds.startMPath()
        ds.startDmRaid()

        # parse the %pre
        self.ksdata = KickstartData()
        self.ksparser = KickstartPreParser(self.ksdata, None)

        try:
            self.ksparser.readKickstart(self.file)
        except KickstartError, e:
           if anaconda.intf:
               anaconda.intf.kickstartErrorWindow(e.__str__())
               sys.exit(0)
           else:
               raise KickstartError, e
Пример #11
0
    def setGroupSelection(self, anaconda):
        BaseInstallClass.__init__(self, anaconda.backend)

        anaconda.backend.unselectAll()
        anaconda.backend.selectGroup("server", asMeta=1)
        anaconda.backend.selectGroup("compat-arch-support",
                                     asMeta=1,
                                     missingOk=1)
Пример #12
0
    def setGroupSelection(self, anaconda):
	BaseInstallClass.__init__(self, anaconda.backend)

        anaconda.backend.unselectAll()

        anaconda.backend.selectGroup("workstation-common", asMeta = 1)
        anaconda.backend.selectGroup("gnome-desktop")
        anaconda.backend.selectGroup("compat-arch-support", asMeta = 1, missingOk = 1)
Пример #13
0
    def setGroupSelection(self, anaconda):
        BaseInstallClass.__init__(self, anaconda.backend)

        anaconda.backend.unselectAll()

        anaconda.backend.selectGroup("workstation-common", asMeta=1)
        anaconda.backend.selectGroup("gnome-desktop")
        anaconda.backend.selectGroup("compat-arch-support",
                                     asMeta=1,
                                     missingOk=1)
Пример #14
0
 def setInstallData(self, anaconda):
     BaseInstallClass.setInstallData(self, anaconda)
     BaseInstallClass.setDefaultPartitioning(self,
                                             anaconda.id.storage,
                                             anaconda.platform)
Пример #15
0
    def setSteps(self, dispatch):
	BaseInstallClass.setSteps(self, dispatch);
	dispatch.skipStep("authentication")
Пример #16
0
    def setInstallData(self, anaconda):
	BaseInstallClass.setInstallData(self, anaconda)
        BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
                                                CLEARPART_TYPE_LINUX)
Пример #17
0
 def setInstallData(self, id):
     BaseInstallClass.setInstallData(self, id)
     BaseInstallClass.setDefaultPartitioning(self, id.partitions,
                                             CLEARPART_TYPE_LINUX)
Пример #18
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("welcome", skip = 1)
Пример #19
0
 def __init__(self, expert):
     BaseInstallClass.__init__(self, expert)
Пример #20
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag", permanent=1)
Пример #21
0
 def configure(self, anaconda):
     BaseInstallClass.configure(self, anaconda)
     BaseInstallClass.setDefaultPartitioning(self, anaconda.storage,
                                             anaconda.platform)
Пример #22
0
    def setSteps(self, anaconda):
        BaseInstallClass.setSteps(self, anaconda)

        if os.path.exists('/tmp/rocks-skip-welcome'):
            anaconda.dispatch.skipStep("welcome", skip=1)
        else:
            anaconda.dispatch.skipStep("welcome", skip=0)

        #
        # skip the following 'graphical' screens
        #
        anaconda.dispatch.skipStep("parttype", skip=1)
        anaconda.dispatch.skipStep("filtertype", skip=1)
        anaconda.dispatch.skipStep("cleardiskssel", skip=1)
        anaconda.dispatch.skipStep("bootloader", permanent=1)
        anaconda.dispatch.skipStep("timezone", permanent=1)
        anaconda.dispatch.skipStep("accounts", permanent=1)
        anaconda.dispatch.skipStep("tasksel", permanent=1)

        if os.path.exists('/tmp/manual-partitioning'):
            anaconda.dispatch.skipStep("partition", skip=0)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=1)
        else:
            anaconda.dispatch.skipStep("partition", skip=1)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=0)

        anaconda.dispatch.skipStep("group-selection", permanent=1)
        anaconda.dispatch.skipStep("complete", permanent=1)

        # from gui import stepToClass
        from dispatch import installSteps
        from packages import turnOnFilesystems
        from rocks_getrolls import RocksGetRolls

        #
        # need to move the making of the file systems up before
        # we download the rolls.
        #
        # rocks doesn't use the 'timezone' or 'accounts' screens,
        # so we'll override them with our functions
        #
        #index = 0
        #for key in installSteps:
        #if key[0] == "timezone":
        #break
        #index = index + 1

        #installSteps[index] = ("rocksenablefilesystems",
        #turnOnFilesystems,)
        #anaconda.dispatch.skipStep("rocksenablefilesystems", skip = 0)
        #anaconda.dispatch.skipStep("enablefilesystems", skip = 1)

        index = 0
        for key in installSteps:
            if key[0] == "upgbootloader":
                break
            index = index + 1

        installSteps[index] = (
            "downloadrolls",
            RocksGetRolls,
        )
        anaconda.dispatch.skipStep("downloadrolls", skip=0)
Пример #23
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag",permanent=1)
Пример #24
0
 def setGroupSelection(self, anaconda):
     BaseInstallClass.setGroupSelection(self, anaconda)
     map(lambda x: anaconda.backend.selectGroup(x), ["core"])
Пример #25
0
 def setGroupSelection(self, anaconda):
     BaseInstallClass.setGroupSelection(self, anaconda)
     anaconda.backend.selectGroup("core")
Пример #26
0
    def setSteps(self, dispatch):
	BaseInstallClass.setSteps(self, dispatch);
	dispatch.skipStep("partition")
        dispatch.skipStep("desktopchoice", skip = 0)
        dispatch.skipStep("package-selection", skip = 1)
Пример #27
0
 def setInstallData(self, id):
     BaseInstallClass.setInstallData(self, id)
     id.upgrade.set(1)
Пример #28
0
    def __init__(self, expert):
	BaseInstallClass.__init__(self, expert)
Пример #29
0
 def setGroupSelection(self, anaconda):
     BaseInstallClass.setGroupSelection(self, anaconda)
     anaconda.backend.selectGroup("core")
Пример #30
0
 def setSteps(self, dispatch):
     BaseInstallClass.setSteps(self, dispatch)
     dispatch.skipStep("partition")
Пример #31
0
 def __init__(self):
     BaseInstallClass.__init__(self)
Пример #32
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("welcome", skip=1)
Пример #33
0
    def setGroupSelection(self, grpset, intf):
	BaseInstallClass.__init__(self, grpset)

        grpset.unselectAll()
        grpset.selectGroup("server", asMeta = 1)
Пример #34
0
 def setSteps(self, dispatch):
     BaseInstallClass.setSteps(self, dispatch)
Пример #35
0
    def setSteps(self, dispatch):
        BaseInstallClass.setSteps(self, dispatch)

        if os.path.exists('/tmp/rocks-skip-welcome'):
            dispatch.skipStep("welcome", skip=1)
        else:
            dispatch.skipStep("welcome", skip=0)

        #
        # parttype is a graphical screen
        #
        dispatch.skipStep("parttype", skip=1)

        dispatch.skipStep("partitiondone", skip=0)

        #
        # bootloader is a graphical screen
        #
        dispatch.skipStep("bootloader", permanent=1)

        dispatch.skipStep("partitionobjinit", skip=0)

        if os.path.exists('/tmp/manual-partitioning'):
            dispatch.skipStep("partition", skip=0)
            dispatch.skipStep("autopartitionexecute", skip=1)
        else:
            dispatch.skipStep("partition", skip=1)
            dispatch.skipStep("autopartitionexecute", skip=0)

        dispatch.skipStep("group-selection", permanent=1)
        dispatch.skipStep("confirminstall", permanent=1)
        dispatch.skipStep("complete", permanent=1)

        from gui import stepToClass
        from dispatch import installSteps
        from rocks_getrolls import RocksGetRolls
        from packages import turnOnFilesystems

        #
        # need to move the making of the file systems up before
        # we download the rolls.
        #
        # rocks doesn't use the 'timezone' or 'accounts' screens,
        # so we'll override them with our functions
        #
        index = 0
        for key in installSteps:
            if key[0] == "timezone":
                break
            index = index + 1

        installSteps[index] = (
            "rocksenablefilesystems",
            turnOnFilesystems,
        )
        dispatch.skipStep("rocksenablefilesystems", skip=0)
        dispatch.skipStep("enablefilesystems", skip=1)

        index = 0
        for key in installSteps:
            if key[0] == "accounts":
                break
            index = index + 1

        installSteps[index] = (
            "downloadrolls",
            RocksGetRolls,
        )
        dispatch.skipStep("downloadrolls", skip=0)
Пример #36
0
 def setInstallData(self, anaconda):
     BaseInstallClass.setInstallData(self, anaconda)
     BaseInstallClass.setDefaultPartitioning(self, anaconda.id.partitions,
                                             CLEARPART_TYPE_ALL)
 def setSteps(self, dispatch):
     BaseInstallClass.setSteps(self, dispatch)
Пример #38
0
 def configure(self, anaconda):
     BaseInstallClass.configure(self, anaconda)
     BaseInstallClass.setDefaultPartitioning(self,
         anaconda.storage, anaconda.platform)
    def setGroupSelection(self, anaconda):
        BaseInstallClass.__init__(self, anaconda.backend)

        anaconda.backend.unselectAll()
        anaconda.backend.selectGroup("server", asMeta=1)
        anaconda.backend.selectGroup("compat-arch-support", asMeta=1, missingOk=1)
Пример #40
0
	def __init__(self):
		BaseInstallClass.__init__(self)
Пример #41
0
 def setInstallData(self, anaconda):
     BaseInstallClass.setInstallData(self, anaconda)
     BaseInstallClass.setDefaultPartitioning(self,
                                             anaconda.id.storage,
                                             anaconda.platform)
Пример #42
0
    def __init__(self, expert):
	BaseInstallClass.__init__(self, expert)

        self.repopaths = { "base": "%s" %(productPath,) }
Пример #43
0
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
Пример #44
0
    def setSteps(self, dispatch):
	BaseInstallClass.setSteps(self, dispatch);
	dispatch.skipStep("partition")
	dispatch.skipStep("regkey", skip = 1)        
Пример #45
0
	def setSteps(self, dispatch):
		BaseInstallClass.setSteps(self, dispatch)

		if os.path.exists('/tmp/rocks-skip-welcome'):
			dispatch.skipStep("welcome", skip = 1)
		else:
			dispatch.skipStep("welcome", skip = 0)

		#
		# parttype is a graphical screen
		#
		dispatch.skipStep("parttype", skip = 1)

		dispatch.skipStep("partitiondone", skip = 0)

		#
		# bootloader is a graphical screen
		#
		dispatch.skipStep("bootloader", permanent = 1)

		dispatch.skipStep("partitionobjinit", skip = 0)

		if os.path.exists('/tmp/manual-partitioning'):
			dispatch.skipStep("partition", skip = 0)
			dispatch.skipStep("autopartitionexecute", skip = 1)
		else:
			dispatch.skipStep("partition", skip = 1)
			dispatch.skipStep("autopartitionexecute", skip = 0)

		dispatch.skipStep("group-selection", permanent = 1)
		dispatch.skipStep("confirminstall", permanent = 1)
		dispatch.skipStep("complete", permanent = 1)


		from gui import stepToClass
		from dispatch import installSteps
		from rocks_getrolls import RocksGetRolls
		from packages import turnOnFilesystems

		#
		# need to move the making of the file systems up before
		# we download the rolls.
		#
		# rocks doesn't use the 'timezone' or 'accounts' screens,
		# so we'll override them with our functions
		#
                index = 0
                for key in installSteps:
                        if key[0] == "timezone":
                                break
                        index = index + 1

                installSteps[index] = ("rocksenablefilesystems",
			turnOnFilesystems,)
		dispatch.skipStep("rocksenablefilesystems", skip = 0)
		dispatch.skipStep("enablefilesystems", skip = 1)

                index = 0
                for key in installSteps:
                        if key[0] == "accounts":
                                break
                        index = index + 1

                installSteps[index] = ("downloadrolls", RocksGetRolls,)
		dispatch.skipStep("downloadrolls", skip = 0)