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

 
 
LinkBack Thread Tools
 
Old 02-15-2011, 06:51 PM
David Lehman
 
Default Handle quotes around labels and UUIDs in /etc/fstab. (#670496)

---
pyanaconda/storage/devicetree.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 05bc3b7..6fac6f5 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -2013,12 +2013,18 @@ class DeviceTree(object):
if devspec.startswith("UUID="):
# device-by-uuid
uuid = devspec.partition("=")[2]
+ if ((uuid.startswith('"') and uuid.endswith('"')) or
+ (uuid.startswith("'") and uuid.endswith("'"))):
+ uuid = uuid[1:-1]
device = self.uuids.get(uuid)
if device is None:
log.error("failed to resolve device %s" % devspec)
elif devspec.startswith("LABEL="):
# device-by-label
label = devspec.partition("=")[2]
+ if ((label.startswith('"') and label.endswith('"')) or
+ (label.startswith("'") and label.endswith("'"))):
+ label = label[1:-1]
device = self.labels.get(label)
if device is None:
log.error("failed to resolve device %s" % devspec)
--
1.7.3.5

_______________________________________________
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 11:41 AM.

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