Re: [PATCH rhel6-branch] Fix list-harddrives output for CCISS devices (#702430).

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

 



On Fri, 2011-05-06 at 13:14 -0400, Chris Lumens wrote:
> Change it from "c0d0" to "cciss/c0d0" since that's the format the kickstart
> commands expect.

Ack.

> ---
>  command-stubs/list-harddrives-stub |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/command-stubs/list-harddrives-stub b/command-stubs/list-harddrives-stub
> index 4025186..25d9eb0 100755
> --- a/command-stubs/list-harddrives-stub
> +++ b/command-stubs/list-harddrives-stub
> @@ -27,7 +27,8 @@ def main(argv):
>      lst = set()
>  
>      for dev in filter(lambda d: d.type != parted.DEVICE_DM, parted.getAllDevices()):
> -        lst.add((os.path.basename(dev.path), dev.getSize()))
> +        path = dev.path.lstrip("/dev/")
> +        lst.add((path, dev.getSize()))
>  
>      lst = list(lst)
>      lst.sort()


_______________________________________________
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