1 |
Index: updates/storage/__init__.py |
--- anaconda-13.21.215/storage/__init__.py.orig 2014-01-02 10:18:52.782882172 -0500 |
2 |
=================================================================== |
+++ anaconda-13.21.215/storage/__init__.py 2014-01-02 10:18:52.798882096 -0500 |
3 |
RCS file: /cvsroot/smeserver/cdrom.image/sme9/updates/storage/__init__.py,v |
@@ -919,7 +919,7 @@ |
|
retrieving revision 1.3 |
|
|
retrieving revision 1.4 |
|
|
diff -u -r1.3 -r1.4 |
|
|
--- updates/storage/__init__.py 6 Nov 2013 02:06:23 -0000 1.3 |
|
|
+++ updates/storage/__init__.py 3 Dec 2013 04:09:59 -0000 1.4 |
|
|
@@ -918,7 +918,7 @@ |
|
4 |
vgnames = [vg.name for vg in self.vgs] |
vgnames = [vg.name for vg in self.vgs] |
5 |
if hn is not None and hn != '': |
if hn is not None and hn != '': |
6 |
if hn == 'localhost' or hn == 'localhost.localdomain': |
if hn == 'localhost' or hn == 'localhost.localdomain': |
9 |
elif hn.find('.') != -1: |
elif hn.find('.') != -1: |
10 |
template = "vg_%s" % (hn.split('.')[0].lower(),) |
template = "vg_%s" % (hn.split('.')[0].lower(),) |
11 |
vgtemplate = safeLvmName(template) |
vgtemplate = safeLvmName(template) |
12 |
@@ -926,7 +926,7 @@ |
@@ -927,7 +927,7 @@ |
13 |
template = "vg_%s" % (hn.lower(),) |
template = "vg_%s" % (hn.lower(),) |
14 |
vgtemplate = safeLvmName(template) |
vgtemplate = safeLvmName(template) |
15 |
else: |
else: |
18 |
|
|
19 |
if vgtemplate not in vgnames and \ |
if vgtemplate not in vgnames and \ |
20 |
vgtemplate not in lvm.lvm_vg_blacklist: |
vgtemplate not in lvm.lvm_vg_blacklist: |
21 |
@@ -951,12 +951,12 @@ |
@@ -952,12 +952,12 @@ |
22 |
if mountpoint: |
if mountpoint: |
23 |
# try to incorporate the mountpoint into the name |
# try to incorporate the mountpoint into the name |
24 |
if mountpoint == '/': |
if mountpoint == '/': |
34 |
|
|
35 |
lvtemplate = safeLvmName(template) |
lvtemplate = safeLvmName(template) |
36 |
else: |
else: |
37 |
@@ -964,13 +964,13 @@ |
@@ -965,13 +965,13 @@ |
38 |
if len([s for s in self.swaps if s in vg.lvs]): |
if len([s for s in self.swaps if s in vg.lvs]): |
39 |
idx = len([s for s in self.swaps if s in vg.lvs]) |
idx = len([s for s in self.swaps if s in vg.lvs]) |
40 |
while True: |
while True: |