Re: [PATCH] Fix ks raid --useexisting and --noformat

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

 



> diff --git a/kickstart.py b/kickstart.py
> index b21b8ea..972b8e8 100644
> --- a/kickstart.py
> +++ b/kickstart.py
> @@ -719,8 +719,8 @@ class Raid(commands.raid.F9_Raid):
>              if not dev:
>                  raise KickstartValueError, formatErrorMsg(self.lineno, msg="No preexisting RAID device with the name \"%s\" was found." % devicename)
>  
> -            dev.format.mountpoint = lvd.mountpoint
> -            dev.format.mountopts = lvd.fsopts
> +            dev.format.mountpoint = rd.mountpoint
> +            dev.format.mountopts = rd.fsopts
>              self.handler.skipSteps.extend(["partition", "zfcpconfig", "parttype"])
>              return rd
>  
> @@ -759,9 +759,9 @@ class Raid(commands.raid.F9_Raid):
>          # to take place there.  Also, we only support a subset of all the
>          # options on pre-existing RAIDs.
>          if rd.preexist:
> -            device = devicetree.getDeviceByName(rd.name)
> +            device = devicetree.getDeviceByName(devicename)
>              if not device:
> -                raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specifeid nonexisted RAID %s in raid command" % rd.name)
> +                raise KickstartValueError, formatErrorMsg(self.lineno, msg="Specifeid nonexisted RAID %s in raid command" % devicename)
>  
>              devicetree.registerAction(ActionCreateFormat(device, kwargs["format"]))
>          else:

Looks good as well.  Note that error message in the second blob should
be "nonexistent", not "nonexisted".  That's not even a word.

- 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