Re: [PATCH] Teach driverdisk.py command to reject extra partitions

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

 



>  pykickstart/commands/driverdisk.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/pykickstart/commands/driverdisk.py b/pykickstart/commands/driverdisk.py
> index 2423d93..656ec06 100644
> --- a/pykickstart/commands/driverdisk.py
> +++ b/pykickstart/commands/driverdisk.py
> @@ -74,6 +74,9 @@ class FC3_DriverDisk(KickstartCommand):
>      def parse(self, args):
>          (opts, extra) = self.op.parse_args(args=args)
>  
> +        if len(extra) > 1:
> +            raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Only one partition may be specified for driverdisk command."))
> +
>          if len(extra) == 1 and opts.source:
>              raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Only one of --source and partition may be specified for driverdisk command."))
>  

Applied.  Thanks for the patch.

- Chris

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux