Ejemplo n.º 1
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 2
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

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

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

        return retval
Ejemplo n.º 4
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 5
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 6
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 8
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 9
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 10
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 11
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 13
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 14
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 16
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 17
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 18
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 19
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 21
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 22
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 23
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 25
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 28
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 29
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 30
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 31
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 33
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

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

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

        return retval
Ejemplo n.º 35
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 36
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 37
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 39
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 40
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 41
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 43
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        args = self._getArgsAsStr()
        if args:
            retval += "# System timezone\n"
            retval += "timezone" + args + "\n"

        return retval
Ejemplo n.º 44
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 46
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 47
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 48
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 50
0
    def __str__(self):
        retval = KickstartCommand.__str__(self)

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

        return retval
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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"