From 694c9c9272fd30cc7016f31c1562ed2d56ac234c Mon Sep 17 00:00:00 2001
From: Mark Huang <mlhuang@cs.princeton.edu>
Date: Sat, 13 Jan 2007 18:05:03 +0000
Subject: [PATCH] - fix last checkin to just store the full path (e.g.,  
 ide/host0/bus0/target0/lun0/disc) of the valid block name instead of  
 storing the name of the symlink (e.g., hda) - ...since vgcreate doesn't
 follow symlinks (see accompanying checkin to   InstallPartitionDisks.py)

---
 source/systeminfo.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/source/systeminfo.py b/source/systeminfo.py
index 6802386..2f0ade6 100755
--- a/source/systeminfo.py
+++ b/source/systeminfo.py
@@ -146,7 +146,7 @@ def get_block_device_list(vars = {}, log = sys.stderr):
         # and /dev/sda, etc. were just symlinks
         try:
             devfsname= os.readlink( "/dev/%s" % devicename )
-            valid_blk_names[devfsname]= devicename
+            valid_blk_names[devfsname]=None
         except OSError:
             pass
 
@@ -190,8 +190,6 @@ def get_block_device_list(vars = {}, log = sys.stderr):
         # skip and ignore any partitions
         if not valid_blk_names.has_key(device):
             continue
-        elif valid_blk_names[device] is not None:
-            device= valid_blk_names[device]
 
         try:
             major= int(parts[0])
-- 
2.47.0