- fix last checkin to just store the full path (e.g.,
authorMark Huang <mlhuang@cs.princeton.edu>
Sat, 13 Jan 2007 18:05:03 +0000 (18:05 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Sat, 13 Jan 2007 18:05:03 +0000 (18:05 +0000)
  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

index 6802386..2f0ade6 100755 (executable)
@@ -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])