Beispiel #1
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.keyboard:
            retval += "# System keyboard\nkeyboard %s\n" % self.keyboard

        return retval
Beispiel #2
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use CDROM installation media\ncdrom\n"
        return retval
Beispiel #3
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.url:
            retval += "updates %s\n" % self.url

        return retval
Beispiel #4
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.check:
            retval += "lilocheck\n"

        return retval
Beispiel #5
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.deviceprobe:
            retval += "deviceprobe %s\n" % self.deviceprobe

        return retval
Beispiel #6
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.iscsiname:
            retval += "iscsiname %s\n" % self.iscsiname

        return retval
Beispiel #7
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.type is None:
            return retval

        if self.type == CLEARPART_TYPE_NONE:
            clearstr = " --none"
        elif self.type == CLEARPART_TYPE_LINUX:
            clearstr = " --linux"
        elif self.type == CLEARPART_TYPE_ALL:
            clearstr = " --all"
        else:
            clearstr = ""

        if self.initAll:
            initstr = " --initlabel"
        else:
            initstr = ""

        if self.drives:
            drivestr = " --drives=" + ",".join(self.drives)
        else:
            drivestr = ""

        retval += "# Partition clearing information\nclearpart%s%s%s\n" % (
            clearstr, initstr, drivestr)
        return retval
Beispiel #8
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.interactive:
            retval += "# Use interactive kickstart installation method\ninteractive\n"

        return retval
Beispiel #9
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.ignoredisk:
            retval += "ignoredisk --drives=%s\n" % ",".join(self.ignoredisk)

        return retval
Beispiel #10
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.seen:
            retval += "# Use network installation\nurl --url=\"%s\"\n" % self.url

        return retval
Beispiel #11
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.skipx:
            retval += "# Do not configure the X Window System\nskipx\n"

        return retval
Beispiel #12
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.card != "":
            retval += " --card=%s" % self.card
        if self.defaultdesktop != "":
            retval += " --defaultdesktop=%s" % self.defaultdesktop
        if self.depth != 0:
            retval += " --depth=%d" % self.depth
        if self.hsync != "":
            retval += " --hsync=%s" % self.hsync
        if self.monitor != "":
            retval += " --monitor=%s" % self.monitor
        if self.noProbe:
            retval += " --noprobe"
        if self.resolution != "":
            retval += " --resolution=%s" % self.resolution
        if self.server != "":
            retval += " --server=%s" % self.server
        if self.startX:
            retval += " --startxonboot"
        if self.videoRam != "":
            retval += " --videoram=%s" % self.videoRam
        if self.vsync != "":
            retval += " --vsync=%s" % self.vsync

        if retval != "":
            retval = "# X Window System configuration information\nxconfig %s\n" % retval

        return retval
Beispiel #13
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.zerombr:
            retval += "# Clear the Master Boot Record\nzerombr\n"

        return retval
Beispiel #14
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.check:
            retval += "lilocheck\n"

        return retval
Beispiel #15
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.password != "":
            retval += "# Root password\nrootpw%s %s\n" % (self._getArgsAsStr(), self.password)

        return retval
Beispiel #16
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.interactive:
            retval += "# Use interactive kickstart installation method\ninteractive\n"

        return retval
Beispiel #17
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.autopart:
            retval += "autopart\n"

        return retval
Beispiel #18
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.seen:
            retval += "# Use network installation\nurl --url=\"%s\"\n" % self.url

        return retval
Beispiel #19
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.authconfig:
            retval += "# System authorization information\nauth %s\n" % self.authconfig

        return retval
Beispiel #20
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use NFS installation media\nnfs --server=%s --dir=%s\n" % (self.server, self.dir)
        return retval
Beispiel #21
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.lang != "":
            retval += "# System language\nlang %s\n" % self.lang

        return retval
Beispiel #22
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.zerombr:
            retval += "# Clear the Master Boot Record\nzerombr\n"

        return retval
Beispiel #23
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.ignoredisk:
            retval += "ignoredisk --drives=%s\n" % ",".join(self.ignoredisk)

        return retval
Beispiel #24
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.type is None:
            return retval

        if self.type == CLEARPART_TYPE_NONE:
            clearstr = " --none"
        elif self.type == CLEARPART_TYPE_LINUX:
            clearstr = " --linux"
        elif self.type == CLEARPART_TYPE_ALL:
            clearstr = " --all"
        else:
            clearstr = ""

        if self.initAll:
            initstr = " --initlabel"
        else:
            initstr = ""

        if len(self.drives) > 0:
            drivestr = " --drives=" + ",".join(self.drives)
        else:
            drivestr = ""

        retval += "# Partition clearing information\nclearpart%s%s%s\n" % (clearstr, initstr, drivestr)
        return retval
Beispiel #25
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.skipx:
            retval += "# Do not configure the X Window System\nskipx\n"

        return retval
Beispiel #26
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.card != "":
            retval += " --card=%s" % self.card
        if self.defaultdesktop != "":
            retval += " --defaultdesktop=%s" % self.defaultdesktop
        if self.depth != 0:
            retval += " --depth=%d" % self.depth
        if self.hsync != "":
            retval += " --hsync=%s" % self.hsync
        if self.monitor != "":
            retval += " --monitor=%s" % self.monitor
        if self.noProbe:
            retval += " --noprobe"
        if self.resolution != "":
            retval += " --resolution=%s" % self.resolution
        if self.server != "":
            retval += " --server=%s" % self.server
        if self.startX:
            retval += " --startxonboot"
        if self.videoRam != "":
            retval += " --videoram=%s" % self.videoRam
        if self.vsync != "":
            retval += " --vsync=%s" % self.vsync

        if retval != "":
            retval = "# X Window System configuration information\nxconfig %s\n" % retval

        return retval
Beispiel #27
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use installation media via SE/HMC\nhmc\n"
        return retval
Beispiel #28
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.lang != "":
            retval += "# System language\nlang %s\n" % self.lang

        return retval
Beispiel #29
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.deviceprobe != "":
            retval += "deviceprobe %s\n" % self.deviceprobe

        return retval
Beispiel #30
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.iscsiname != "":
            retval += "iscsiname %s\n" % self.iscsiname

        return retval
Beispiel #31
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.keyboard:
            retval += "# System keyboard\nkeyboard %s\n" % self.keyboard

        return retval
Beispiel #32
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use NFS installation media\nnfs --server=%s --dir=%s\n" % (self.server, self.dir)
        return retval
Beispiel #33
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use CDROM installation media\ncdrom\n"
        return retval
Beispiel #34
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.autopart:
            retval += "autopart\n"

        return retval
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.unsupported_hardware:
            retval += "unsupported_hardware\n"

        return retval
Beispiel #36
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.authconfig:
            retval += "# System authorization information\nauth %s\n" % self.authconfig

        return retval
Beispiel #37
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.unsupported_hardware:
            retval += "unsupported_hardware\n"

        return retval
Beispiel #38
0
    def __str__(self):
        if self.upgrade and (self.root_device is not None):
            retval = KickstartCommand.__str__(self)
            retval += "# Upgrade existing installation\nupgrade --root-device=%s\n" % self.root_device
        else:
            retval = FC3_Upgrade.__str__(self)

        return retval
Beispiel #39
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.location != "":
            retval += "# System bootloader configuration\nbootloader"
            retval += self._getArgsAsStr() + "\n"

        return retval
Beispiel #40
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.timezone:
            retval += "# System timezone\n"
            retval += "timezone " + self._getArgsAsStr() + "\n"

        return retval
Beispiel #41
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.agreed:
            retval += "# License agreement\n"
            retval += "eula %s\n" % self._getArgsAsStr()

        return retval
Beispiel #42
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.password != "":
            retval += "# Root password\nrootpw%s %s\n" % (self._getArgsAsStr(),
                                                          self.password)

        return retval
Beispiel #43
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        args = self._getArgsAsStr()
        if args:
            retval += "# System timezone\n"
            retval += "timezone" + args + "\n"

        return retval
Beispiel #44
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.location:
            retval += "# System bootloader configuration\nbootloader"
            retval += self._getArgsAsStr() + "\n"

        return retval
Beispiel #45
0
    def __str__(self):
        if self.upgrade and (self.root_device is not None):
            retval = KickstartCommand.__str__(self)
            retval += "# Upgrade existing installation\nupgrade --root-device=%s\n" % self.root_device
        else:
            retval = FC3_Upgrade.__str__(self)

        return retval
Beispiel #46
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.agreed:
            retval += "# License agreement\n"
            retval += "eula %s\n" % self._getArgsAsStr()

        return retval
Beispiel #47
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.osname:
            retval += "# OSTree setup\n"
            retval += "ostreesetup %s\n" % self._getArgsAsStr()

        return retval
Beispiel #48
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.timezone:
            retval += "# System timezone\n"
            retval += "timezone " + self._getArgsAsStr() + "\n"

        return retval
Beispiel #49
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.secure_boot is not SECURE_BOOT_DEFAULT:
            retval += "# ZIPL configuration\nzipl"
            retval += self._getArgsAsStr() + "\n"

        return retval
Beispiel #50
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.osname:
            retval += "# OSTree setup\n"
            retval += "ostreesetup %s\n" % self._getArgsAsStr()

        return retval
Beispiel #51
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.action == KS_REBOOT:
            retval += "# Reboot after installation\nreboot\n"
        elif self.action == KS_SHUTDOWN:
            retval += "# Shutdown after installation\nshutdown\n"

        return retval
Beispiel #52
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if len(self.ignoredisk) > 0:
            retval += "ignoredisk --drives=%s\n" % ",".join(self.ignoredisk)
        elif len(self.onlyuse) > 0:
            retval += "ignoredisk --only-use=%s\n" % ",".join(self.onlyuse)

        return retval
Beispiel #53
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.url == "floppy":
            retval += "updates\n"
        elif self.url != "":
            retval += "updates %s\n" % self.url

        return retval
Beispiel #54
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if len(self.ignoredisk) > 0:
            retval += "ignoredisk --drives=%s\n" % ",".join(self.ignoredisk)
        elif len(self.onlyuse) > 0:
            retval += "ignoredisk --only-use=%s\n" % ",".join(self.onlyuse)

        return retval
Beispiel #55
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.url == "floppy":
            retval += "updates\n"
        elif self.url:
            retval += "updates %s\n" % self.url

        return retval
Beispiel #56
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.action == KS_REBOOT:
            retval += "# Reboot after installation\nreboot\n"
        elif self.action == KS_SHUTDOWN:
            retval += "# Shutdown after installation\nshutdown\n"

        return retval
Beispiel #57
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.key == KS_INSTKEY_SKIP:
            retval += "key --skip\n"
        elif self.key:
            retval += "key %s\n" % self.key

        return retval
Beispiel #58
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.autostep:
            if self.autoscreenshot:
                retval += "autostep --autoscreenshot\n"
            else:
                retval += "autostep\n"

        return retval
Beispiel #59
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.deflang:
            retval += "langsupport --default=%s" % self.deflang

            if self.supported:
                retval += " %s" % " ".join(self.supported)

        return retval + "\n"