Re: [PATCH 2/2] Add support for 'autopart --nolvm'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +    def _getParser(self):
> +        def lvm_cb (option, opt_str, value, parser):
> +            parser.values.lvm = False
> +
> +        op = F12_AutoPart._getParser(self)
> +        op.add_option("--nolvm", action="callback", callback=lvm_cb,
> +                      dest="lvm", default=True, nargs=0)
> +        return op

You should just be able to make this:

   op.add_option("--nolvm", action="store_false", default=True, dest="lvm")

Right?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux