FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS Development

 
 
LinkBack Thread Tools
 
Old 05-06-2011, 05:14 PM
Chris Lumens
 
Default Fix list-harddrives output for CCISS devices (#702430).

Change it from "c0d0" to "cciss/c0d0" since that's the format the kickstart
commands expect.
---
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()
--
1.7.4.1

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

Thread Tools




All times are GMT. The time now is 12:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org