Beispiel #1
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--iscrypted",
                   dest="isCrypted",
                   action="store_true",
                   default=False)
     return op
Beispiel #2
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--autoscreenshot",
                   dest="autoscreenshot",
                   action="store_true",
                   default=False)
     return op
Beispiel #3
0
 def _getParser(self):
     op = KSOptionParser(prog="keyboard",
                         description="""
         This required command sets system keyboard type.""",
                         version=FC3)
     op.add_argument("kbd", nargs='*', help="Keyboard type", version=FC3)
     return op
Beispiel #4
0
    def _getParser(self):
        op = KSOptionParser(prog="device",
                            description="""
            On most PCI systems, the installation program will autoprobe for
            Ethernet and SCSI cards properly. On older systems and some PCI
            systems, however, kickstart needs a hint to find the proper
            devices. The device command, which tells the installation program
            to install extra modules, is in this format:

            ``device <moduleName> --opts=<options>``

            ``<moduleName>``

            Replace with the name of the kernel module which should be
            installed.""",
                            version=FC3)
        op.add_argument("--opts",
                        dest="moduleOpts",
                        default="",
                        version=FC3,
                        help="""
                        Options to pass to the kernel module. For example:

                        ``--opts="aic152x=0x340 io=11"``
                        """)
        return op
    def handle_header(self, lineno, args):
        """
        The handle_header method is called to parse additional arguments in the
        %addon section line.

        args is a list of all the arguments following the addon ID. For
        example, for the line:
        
            %addon org_fedora_hello_world --reverse --arg2="example"

        handle_header will be called with args=['--reverse', '--arg2="example"']

        :param lineno: the current line number in the kickstart file
        :type lineno: int
        :param args: the list of arguments from the %addon line
        :type args: list
        """

        op = KSOptionParser()
        op.add_option("--reverse", action="store_true", default=False,
                dest="reverse", help="Reverse the display of the addon text")
        (opts, extra) = op.parse_args(args=args, lineno=lineno)
        
        # Reject any additional arguments. Since AddonData.handle_header
        # rejects any arguments, we can use it to create an error message
        # and raise an exception.
        if extra:
            AddonData.handle_header(self, lineno, args)

        # Store the result of the option parsing
        self.reverse = opts.reverse
    def handle_header(self, lineno, args):
        """
        The handle_header method is called to parse additional arguments in the
        %addon section line.

        args is a list of all the arguments following the addon ID. For
        example, for the line:

            %addon org_fedora_hello_world --reverse --arg2="example"

        handle_header will be called with args=['--reverse', '--arg2="example"']

        :param lineno: the current line number in the kickstart file
        :type lineno: int
        :param args: the list of arguments from the %addon line
        :type args: list
        """
        op = KSOptionParser(prog="addon org_fedora_hello_world",
                            version=F30,
                            description="Configure the Hello World Addon.")

        op.add_argument("--reverse",
                        action="store_true",
                        default=False,
                        version=F30,
                        dest="reverse",
                        help="Reverse the display of the addon text.")

        # Parse the arguments.
        ns = op.parse_args(args=args, lineno=lineno)

        # Store the result of the parsing.
        self.reverse = ns.reverse
Beispiel #7
0
    def _getParser(self):
        op = KSOptionParser()
        # people would struggle remembering the exact word
        op.add_option("--agreed", "--agree", "--accepted", "--accept",
                      dest="agreed", action="store_true", default=False)

        return op
Beispiel #8
0
    def _getParser(self):
        op = KSOptionParser()
        op.add_option("--biospart", dest="biospart")
        op.add_option("--partition", dest="partition")
        op.add_option("--dir", dest="dir", required=1)

        return op
Beispiel #9
0
    def handle_header(self, lineno, args):
        """
        The handle_header method is called to parse additional arguments in the
        %addon section line.

        args is a list of all the arguments following the addon ID. For
        example, for the line:

            %addon org_fedora_hello_world --reverse --arg2="example"

        handle_header will be called with args=['--reverse', '--arg2="example"']

        :param lineno: the current line number in the kickstart file
        :type lineno: int
        :param args: the list of arguments from the %addon line
        :type args: list
        """

        op = KSOptionParser()
        op.add_option("--reverse", action="store_true", default=False,
                dest="reverse", help="Reverse the display of the addon text")
        (opts, extra) = op.parse_args(args=args, lineno=lineno)

        # Reject any additional arguments.
        if extra:
            msg = "Unhandled arguments on %%addon line for %s" % self.name
            if lineno != None:
                raise KickstartParseError(formatErrorMsg(lineno, msg=msg))
            else:
                raise KickstartParseError(msg)

        # Store the result of the option parsing
        self.reverse = opts.reverse
Beispiel #10
0
    def _getParser(self):
        op = KSOptionParser()
        # people would struggle remembering the exact word
        op.add_option("--agreed", "--agree", "--accepted", "--accept",
                      dest="agreed", action="store_true", default=False)

        return op
    def handle_header(self, lineno, args):

        op = KSOptionParser()
        op.add_option("--enable", "-e", action="store_true", default=False,
                      dest="state", help="Enable Cloud Support")
        op.add_option("--disable", "-d", action="store_false",
                      dest="state", help="(Default) Disable Cloud Support")
        op.add_option("--allinone", "-a", action="store_true", default=False,
                      dest="mode", help="Specify the mode of Packstack Installation")
        op.add_option("--answer-file", "-f", action="store", type="string",
                      dest="file", help="Specify URL of answers file")
        (options, extra) = op.parse_args(args=args, lineno=lineno)

        # Error Handling
        if str(options.state) == "True":
            self.state = str(options.state)
            if options.file and options.mode:
                msg = "options --allinone and --answer-file are mutually exclusive"
                raise KickstartParseError(msg)
            elif options.file:
                try:
                    response = urllib2.urlopen(options.file)
                    for line in response:
                        self.lines += line
                except urllib2.HTTPError, e:
                    msg = "Kickstart Error:: HTTPError: " + str(e.code)
                    raise KickstartParseError, formatErrorMsg(lineno, msg=msg)
                except urllib2.URLError, e:
                    msg = "Kickstart Error: HTTPError: " + str(e.reason)
                    raise KickstartParseError, formatErrorMsg(lineno, msg=msg)
                except:
Beispiel #12
0
    def _getParser(self):
        op = KSOptionParser(prog="lang",
                            description="""
            This required command sets the language to use during installation
            and the default language to use on the installed system to ``<id>``.
            This can be the same as any recognized setting for the ``$LANG``
            environment variable, though not all languages are supported during
            installation.

            Certain languages (mainly Chinese, Japanese, Korean, and Indic
            languages) are not supported during text mode installation. If one
            of these languages is specified using the lang command, installation
            will continue in English though the running system will have the
            specified langauge by default.

            The file ``/usr/share/system-config-language/locale-list`` provides a
            list the valid language codes in the first column of each line and
            is part of the system-config-languages package.""",
                            version=FC3)
        op.add_argument("lang",
                        metavar="<lang>",
                        nargs=1,
                        version=FC3,
                        help="Language ID.")
        return op
Beispiel #13
0
    def _getParser(self):
        op = KSOptionParser(prog="reqpart",
                            description="""
                            Automatically create partitions required by your
                            hardware platform. These include a ``/boot/efi``
                            for x86_64 and Aarch64 systems with UEFI firmware,
                            ``biosboot`` for x86_64 systems with BIOS firmware
                            and GPT, and ``PRePBoot`` for IBM Power Systems.

                            Note: This command can not be used together with
                            ``autopart``, because ``autopart`` does the same
                            and creates other partitions or logical volumes
                            such as ``/`` and ``swap`` on top. In contrast with
                            ``autopart``, this command only creates
                            platform-specific partitions and leaves the rest of
                            the drive empty, allowing you to create a custom
                            layout.""",
                            version=F23)
        op.add_argument("--add-boot",
                        action="store_true",
                        version=F23,
                        dest="addBoot",
                        default=False,
                        help="""
                        Create a separate ``/boot`` partition in addition to the
                        platform-specific partition created by the base command.
                        """)
        return op
Beispiel #14
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--name", dest="name", action="store", type="string",
                   required=1)
     op.add_option("--dev", dest="devices", action="append", type="string",
                   required=1)
     return op
Beispiel #15
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--url", required=1)
     op.add_option("--proxy")
     op.add_option("--noverifyssl", action="store_true", default=False)
     op.add_option("--checksum")
     return op
Beispiel #16
0
    def handle_header(self, lineno, args):
        """
        The handle_header method is called to parse additional arguments in the
        %addon section line.

        args is a list of all the arguments following the addon ID. For
        example, for the line:

            %addon org_fedora_hello_world --reverse --arg2="example"

        handle_header will be called with args=['--reverse', '--arg2="example"']

        :param lineno: the current line number in the kickstart file
        :type lineno: int
        :param args: the list of arguments from the %addon line
        :type args: list
        """

        op = KSOptionParser()
        op.add_option("--reverse", action="store_true", default=False,
                dest="reverse", help="Reverse the display of the addon text")
        (opts, extra) = op.parse_args(args=args, lineno=lineno)

        # Reject any additional arguments.
        if extra:
            msg = "Unhandled arguments on %%addon line for %s" % self.name
            if lineno != None:
                raise KickstartParseError(formatErrorMsg(lineno, msg=msg))
            else:
                raise KickstartParseError(msg)

        # Store the result of the option parsing
        self.reverse = opts.reverse
Beispiel #17
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--add-boot",
                     action="store_true",
                     dest="addBoot",
                     default=False)
     return op
Beispiel #18
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--drives",
                     dest="ignoredisk",
                     type=commaSplit,
                     required=True)
     return op
Beispiel #19
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--eject",
                   dest="eject",
                   action="store_true",
                   default=False)
     return op
Beispiel #20
0
    def _getParser(self):
        try:
            op = KSOptionParser(lineno=self.lineno)
        except TypeError:
            # the latest version has not lineno argument
            op = KSOptionParser()
            self.__new_version = True

        op.add_option(
            "--defaultdesktop",
            dest="defaultdesktop",
            action="store",
            type="string",
            nargs=1)
        op.add_option(
            "--autologinuser",
            dest="autologinuser",
            action="store",
            type="string",
            nargs=1)
        op.add_option(
            "--defaultdm",
            dest="defaultdm",
            action="store",
            type="string",
            nargs=1)
        op.add_option(
            "--session",
            dest="session",
            action="store",
            type="string",
            nargs=1)
        return op
Beispiel #21
0
    def _getParser(self):
        op = KSOptionParser(prog="module", description="""
                            The module command makes it possible to manipulate
                            modules.

                            (In this case we mean modules as introduced by the
                            Fedora modularity initiative.)

                            A module is defined by a unique name and a stream id,
                            where single module can (and usually has) multiple
                            available streams.

                            Streams will in most cases corresponds to stable
                            releases of the given software components
                            (such as Node.js, Django, etc.) but there could be
                            also other use cases, such as a raw upstream master
                            branch stream or streams corresponding to an upcoming
                            stable release.

                            For more information see the Fedora modularity
                            initiative documentation:
                            https://docs.pagure.org/modularity/""", version=F29)
        op.add_argument("--name", metavar="<module_name>", version=F29, required=True,
                        help="""
                        Name of the module to enable.""")
        op.add_argument("--stream", metavar="<module_stream_name>", version=F29, required=False,
                        help="""
                        Name of the module stream to enable.""")

        return op
Beispiel #22
0
 def _getParser(self):
     op = KSOptionParser(prog="fcoe", description="""
                         Discover and attach FCoE storage devices accessible via
                         specified network interface
                         """, version=F12)
     op.add_argument("--nic", required=True, version=F12, help="""
                     Name of the network device connected to the FCoE switch""")
     return op
Beispiel #23
0
 def _getParser(self):
     op = KSOptionParser(prog="zfcp", description="", version=FC3)
     op.add_argument("--devnum", required=True, version=FC3, help="")
     op.add_argument("--fcplun", required=True, version=FC3, help="")
     op.add_argument("--scsiid", required=True, version=FC3, help="")
     op.add_argument("--scsilun", required=True, version=FC3, help="")
     op.add_argument("--wwpn", required=True, version=FC3, help="")
     return op
Beispiel #24
0
 def _getParser(self):
     op = KSOptionParser(prog="key", description="", version=RHEL5)
     op.add_argument("--skip",
                     action="store_true",
                     default=False,
                     version=RHEL5,
                     help="")
     return op
Beispiel #25
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--osname", required=True)
     op.add_argument("--remote")
     op.add_argument("--url", required=True)
     op.add_argument("--ref", required=True)
     op.add_argument("--nogpg", action="store_true")
     return op
Beispiel #26
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--devnum", dest="devnum", required=1)
     op.add_option("--fcplun", dest="fcplun", required=1)
     op.add_option("--scsiid", dest="scsiid", required=1)
     op.add_option("--scsilun", dest="scsilun", required=1)
     op.add_option("--wwpn", dest="wwpn", required=1)
     return op
Beispiel #27
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--target")
     op.add_argument("--ipaddr", required=True)
     op.add_argument("--port")
     op.add_argument("--user")
     op.add_argument("--password")
     return op
Beispiel #28
0
 def _getParser(self):
     op = KSOptionParser(prog="fcoe", description="""
                         Discover and attach FCoE storage devices accessible via
                         specified network interface
                         """, version=F12)
     op.add_argument("--nic", required=True, version=F12, help="""
                     Name of the network device connected to the FCoE switch""")
     return op
Beispiel #29
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--devnum", required=True)
     op.add_argument("--fcplun", required=True)
     op.add_argument("--scsiid", required=True)
     op.add_argument("--scsilun", required=True)
     op.add_argument("--wwpn", required=True)
     return op
Beispiel #30
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--osname", dest="osname", required=1)
     op.add_option("--remote", dest="remote")
     op.add_option("--url", dest="url", required=1)
     op.add_option("--ref", dest="ref", required=1)
     op.add_option("--nogpg", action="store_true")
     return op
Beispiel #31
0
 def _getParser(self):
     op = KSOptionParser(prog="mouse", description="""
                         Configure the system mouse""", version=RHEL3)
     op.add_argument("--device", default="", version=RHEL3,
                     help="Which device node to use for mouse")
     op.add_argument("--emulthree", default=False, action="store_true",
                     version=RHEL3, help="If set emulate 3 mouse buttons")
     return op
Beispiel #32
0
 def _getParser(self):
     op = KSOptionParser(prog="url", description="""
                         Install from an installation tree on a remote server
                         via FTP or HTTP.""", version=FC3)
     op.add_argument("--url", required=True, version=FC3, help="""
                     The URL to install from. Variable substitution is done
                     for $releasever and $basearch in the url.""")
     return op
Beispiel #33
0
 def _getParser(self):
     op = KSOptionParser(prog="url", description="""
                         Install from an installation tree on a remote server
                         via FTP or HTTP.""", version=FC3)
     op.add_argument("--url", required=True, version=FC3, help="""
                     The URL to install from. Variable substitution is done
                     for $releasever and $basearch in the url.""")
     return op
Beispiel #34
0
 def _getParser(self):
     op = KSOptionParser(prog="eula", version=F20, description="""
                         Automatically accept Red Hat's EULA""")
     # people would struggle remembering the exact word
     op.add_argument("--agreed", "--agree", "--accepted", "--accept",
                     dest="agreed", action="store_true", default=False,
                     version=F20, help="Accept the EULA. This is mandatory option!")
     return op
Beispiel #35
0
    def _getParser(self):
        def drive_cb (option, opt_str, value, parser):
            for d in value.split(','):
                parser.values.ensure_value(option.dest, []).append(d)

        op = KSOptionParser()
        op.add_option("--drives", dest="ignoredisk", action="callback",
                      callback=drive_cb, nargs=1, type="string", required=1)
        return op
Beispiel #36
0
 def _getParser(self):
     op = KSOptionParser(prog="iscsiname", description="""
         Assigns an initiator name to the computer. If you use the iscsi
         parameter in your kickstart file, this parameter is mandatory, and
         you must specify iscsiname in the kickstart file before you specify
         iscsi.""", version=FC6)
     op.add_argument("iqn", metavar="<iqn>", nargs=1, version=FC6, help="""
                     IQN name""")
     return op
Beispiel #37
0
 def _getParser(self):
     op = KSOptionParser(prog="iscsiname", description="""
         Assigns an initiator name to the computer. If you use the iscsi
         parameter in your kickstart file, this parameter is mandatory, and
         you must specify iscsiname in the kickstart file before you specify
         iscsi.""", version=FC6)
     op.add_argument("iqn", metavar="<iqn>", nargs=1, version=FC6, help="""
                     IQN name""")
     return op
Beispiel #38
0
    def _getParser(self):
        def drive_cb (option, opt_str, value, parser):
            for d in value.split(','):
                parser.values.ensure_value(option.dest, []).append(d)

        op = KSOptionParser()
        op.add_option("--drives", dest="ignoredisk", action="callback",
                      callback=drive_cb, nargs=1, type="string", required=1)
        return op
Beispiel #39
0
    def _getParser(self):
        op = KSOptionParser(prog="timezone",
                            description="""
                            This required command sets the system time zone to
                            which may be any of the time zones listed by
                            timeconfig.""",
                            version=FC3)
        op.add_argument("timezone",
                        metavar="<timezone>",
                        nargs="*",
                        version=FC3,
                        help="""
                        Timezone name, e.g. Europe/Sofia.
                        This is optional but at least one of the options needs
                        to be used if no timezone is specified.
                        """)
        op.add_argument("--utc",
                        "--isUtc",
                        dest="isUtc",
                        action="store_true",
                        default=False,
                        version=FC6,
                        help="""
                        If present, the system assumes the hardware clock is set
                        to UTC (Greenwich Mean) time.

                       *To get the list of supported timezones, you can either
                        run this script:
                        http://vpodzime.fedorapeople.org/timezones_list.py or
                        look at this list:
                        http://vpodzime.fedorapeople.org/timezones_list.txt*
                        """)
        op.add_argument("--nontp",
                        action="store_true",
                        default=False,
                        version=F18,
                        help="""
                        Disable automatic starting of NTP service.

                        ``--nontp`` and ``--ntpservers`` are mutually exclusive.
                        """)
        op.add_argument("--ntpservers",
                        dest="ntpservers",
                        type=commaSplit,
                        metavar="<server1>,<server2>,...,<serverN>",
                        version=F18,
                        help="""
                        Specify a list of NTP servers to be used (comma-separated
                        list with no spaces). The chrony package is automatically
                        installed when this option is used. If you don't want the
                        package to be automatically installed then use ``-chrony``
                        in package selection. For example::

                        ``timezone --ntpservers=ntp.cesnet.cz,tik.nic.cz Europe/Prague``
                        """)
        return op
Beispiel #40
0
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        op = KSOptionParser(version=self.version)
        (_opts, extra) = op.parse_args(args=args[1:], lineno=lineno)
        self.addon_id = extra[0]

        # if the addon is not registered, create dummy placeholder for it
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id, AddonData(self.addon_id))
Beispiel #41
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--username", required=True)
     op.add_argument("--iscrypted",
                     dest="isCrypted",
                     action="store_true",
                     default=False)
     op.add_argument("--plaintext", dest="isCrypted", action="store_false")
     op.add_argument("--lock", action="store_true", default=False)
     return op
Beispiel #42
0
 def _getParser(self):
     op = KSOptionParser(prog="ignoredisk", description="""
         Controls anaconda's access to disks attached to the system. By
         default, all disks will be available for partitioning. Only one of
         the following three options may be used.""", version=FC3)
     op.add_argument("--drives", dest="ignoredisk", type=commaSplit,
                     required=True, version=FC3, help="""
                     Specifies those disks that anaconda should not touch
                     when partitioning, formatting, and clearing.""")
     return op
Beispiel #43
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--target", dest="target", action="store", type="string")
     op.add_option("--ipaddr", dest="ipaddr", action="store", type="string",
                   required=1)
     op.add_option("--port", dest="port", action="store", type="string")
     op.add_option("--user", dest="user", action="store", type="string")
     op.add_option("--password", dest="password", action="store",
                   type="string")
     return op
Beispiel #44
0
 def _getParser(self):
     op = KSOptionParser(prog="ignoredisk", description="""
         Controls anaconda's access to disks attached to the system. By
         default, all disks will be available for partitioning. Only one of
         the following three options may be used.""", version=FC3)
     op.add_argument("--drives", dest="ignoredisk", type=commaSplit,
                     required=True, version=FC3, help="""
                     Specifies those disks that anaconda should not touch
                     when partitioning, formatting, and clearing.""")
     return op
Beispiel #45
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--username", required=True)
     op.add_argument("--iscrypted", dest="isCrypted", action="store_true", default=False)
     op.add_argument("--plaintext", dest="isCrypted", action="store_false")
     op.add_argument("--lock", action="store_true", default=False)
     return op
Beispiel #46
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--url", required=True)
     op.add_argument("--proxy")
     op.add_argument("--noverifyssl", action="store_true", default=False)
     op.add_argument("--checksum")
     return op
Beispiel #47
0
    def _getParser(self):
        op = KSOptionParser(prog="liveimg", description="""
            Install a disk image instead of packages. The image can be the
            squashfs.img from a Live iso, or any filesystem mountable by the
            install media (eg. ext4). Anaconda expects the image to contain
            utilities it needs to complete the system install so the best way to
            create one is to use livemedia-creator to make the disk image. If
            the image contains /LiveOS/*.img (this is how squashfs.img is
            structured) the first *img file inside LiveOS will be mounted and
            used to install the target system. The URL may also point to a
            tarfile of the root filesystem. The file must end in .tar, .tbz,
            .tgz, .txz, .tar.bz2, tar.gz, tar.xz""",
            version=F19)
        op.add_argument("--url", metavar="<url>", required=True, version=F19,
                        help="""
                        The URL to install from. http, https, ftp and file are
                        supported.""")
        op.add_argument("--proxy", metavar="<proxyurl>", version=F19, help="""
                        Specify an HTTP/HTTPS/FTP proxy to use while performing
                        the install. The various parts of the argument act like
                        you would expect. Syntax is::

                        ``--proxy=[protocol://][username[:password]@]host[:port]``
                        """)
        op.add_argument("--noverifyssl", action="store_true", version=F19,
                        default=False, help="""
                        For a tree on a HTTPS server do not check the server's
                        certificate with what well-known CA validate and do not
                        check the server's hostname matches the certificate's
                        domain name.""")
        op.add_argument("--checksum", metavar="<sha256>", version=F19,
                        help="Optional sha256 checksum of the image file")
        return op
Beispiel #48
0
    def _getParser(self):
        def services_cb (option, opt_str, value, parser):
            for d in value.split(','):
                parser.values.ensure_value(option.dest, []).append(d.strip())

        op = KSOptionParser()
        op.add_option("--disabled", dest="disabled", action="callback",
                      callback=services_cb, nargs=1, type="string")
        op.add_option("--enabled", dest="enabled", action="callback",
                      callback=services_cb, nargs=1, type="string")
        return op
    def handleHeader(self, lineno, args):
        """Process the arguments to the %addon header."""
        Section.handleHeader(self, lineno, args)
        op = KSOptionParser(version=self.version)
        (_opts, extra) = op.parse_args(args=args[1:], lineno=lineno)
        self.addon_id = extra[0]

        # if the addon is not registered, create dummy placeholder for it
        if self.addon_id and not hasattr(self.handler.addons, self.addon_id):
            setattr(self.handler.addons, self.addon_id,
                    AddonData(self.addon_id))
Beispiel #50
0
 def _getParser(self):
     op = KSOptionParser(prog="langsupport",
                         description="""
         Install the support packages for the given locales.""",
                         version=FC3)
     op.add_argument("--default",
                     dest="deflang",
                     default="en_US.UTF-8",
                     version=FC3,
                     help="Default locale")
     return op
Beispiel #51
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--devnum", required=True)
     op.add_argument("--fcplun", required=True)
     op.add_argument("--scsiid", required=True)
     op.add_argument("--scsilun", required=True)
     op.add_argument("--wwpn", required=True)
     return op
Beispiel #52
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--target")
     op.add_argument("--ipaddr", required=True)
     op.add_argument("--port")
     op.add_argument("--user")
     op.add_argument("--password")
     return op
Beispiel #53
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_argument("--osname", required=True)
     op.add_argument("--remote")
     op.add_argument("--url", required=True)
     op.add_argument("--ref", required=True)
     op.add_argument("--nogpg", action="store_true")
     return op
Beispiel #54
0
 def _getParser(self):
     op = KSOptionParser()
     op.add_option("--osname", dest="osname", required=1)
     op.add_option("--remote", dest="remote")
     op.add_option("--url", dest="url", required=1)
     op.add_option("--ref", dest="ref", required=1)
     op.add_option("--nogpg", action="store_true")
     return op
Beispiel #55
0
 def _getParser(self):
     op = KSOptionParser(prog="zfcp", description="", version=FC3)
     op.add_argument("--devnum", required=True, version=FC3, help="")
     op.add_argument("--fcplun", required=True, version=FC3, help="")
     op.add_argument("--scsiid", required=True, version=FC3, help="")
     op.add_argument("--scsilun", required=True, version=FC3, help="")
     op.add_argument("--wwpn", required=True, version=FC3, help="")
     return op
Beispiel #56
0
    def _getParser(self):
        op = KSOptionParser(prog="authselect",  description="""
                            This command sets up the authentication options
                            for the system. This is just a wrapper around the
                            authselect program, so all options recognized by
                            that program are valid for this command. See the
                            manual page for authselect for a complete list.""",
                            version=F28)

        op.add_argument("options", metavar="[options]", help="""
                        See ``man authselect``.""", version=F28)
        return op
Beispiel #57
0
 def _getParser(self):
     op = KSOptionParser(prog="group", description="""
         Creates a new user group on the system. If a group with the given
         name or GID already exists, this command will fail. In addition,
         the ``user`` command can be used to create a new group for the
         newly created user.""", version=F12)
     op.add_argument("--name", required=True, version=F12,
                     help="Provides the name of the new group.")
     op.add_argument("--gid", type=int, version=F12, help="""
                     The group's GID. If not provided, this defaults to the
                     next available non-system GID.""")
     return op
Beispiel #58
0
    def _getParser(self):
        op = KSOptionParser(prog="updates", description="""
                            Specify the location of an updates.img for use in
                            installation. See anaconda-release-notes.txt for a
                            description of how to make an updates.img.""",
                            version=F7)
        op.add_argument("updates", metavar="[URL]", nargs="*", version=F7,
                        help="""
                        If present, the URL for an updates image.

                        If not present, anaconda will attempt to load from a
                        floppy disk.""")
        return op