1 |
--- anaconda-13.21.215/storage/__init__.py.orig 2014-01-02 10:18:52.782882172 -0500 |
diff -Nur anaconda-13.21.239/storage/__init__.py anaconda-13.21.239_bz9080/storage/__init__.py |
2 |
+++ anaconda-13.21.215/storage/__init__.py 2014-01-02 10:18:52.798882096 -0500 |
--- anaconda-13.21.239/storage/__init__.py 2015-09-30 11:38:16.573437546 +0200 |
3 |
@@ -919,7 +919,7 @@ |
+++ anaconda-13.21.239_bz9080/storage/__init__.py 2015-09-30 11:40:58.476522195 +0200 |
4 |
|
@@ -968,7 +968,7 @@ |
5 |
vgnames = [vg.name for vg in self.vgs] |
vgnames = [vg.name for vg in self.vgs] |
6 |
if hn is not None and hn != '': |
if hn is not None and hn != '': |
7 |
if hn == 'localhost' or hn == 'localhost.localdomain': |
if hn == 'localhost' or hn == 'localhost.localdomain': |
10 |
elif hn.find('.') != -1: |
elif hn.find('.') != -1: |
11 |
template = "vg_%s" % (hn.split('.')[0].lower(),) |
template = "vg_%s" % (hn.split('.')[0].lower(),) |
12 |
vgtemplate = safeLvmName(template) |
vgtemplate = safeLvmName(template) |
13 |
@@ -927,7 +927,7 @@ |
@@ -976,7 +976,7 @@ |
14 |
template = "vg_%s" % (hn.lower(),) |
template = "vg_%s" % (hn.lower(),) |
15 |
vgtemplate = safeLvmName(template) |
vgtemplate = safeLvmName(template) |
16 |
else: |
else: |
19 |
|
|
20 |
if vgtemplate not in vgnames and \ |
if vgtemplate not in vgnames and \ |
21 |
vgtemplate not in lvm.lvm_vg_blacklist: |
vgtemplate not in lvm.lvm_vg_blacklist: |
22 |
@@ -952,12 +952,12 @@ |
@@ -1001,12 +1001,12 @@ |
23 |
if mountpoint: |
if mountpoint: |
24 |
# try to incorporate the mountpoint into the name |
# try to incorporate the mountpoint into the name |
25 |
if mountpoint == '/': |
if mountpoint == '/': |
35 |
|
|
36 |
lvtemplate = safeLvmName(template) |
lvtemplate = safeLvmName(template) |
37 |
else: |
else: |
38 |
@@ -965,13 +965,13 @@ |
@@ -1014,13 +1014,13 @@ |
39 |
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]): |
40 |
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]) |
41 |
while True: |
while True: |
48 |
else: |
else: |
49 |
- lvtemplate = "lv_swap" |
- lvtemplate = "lv_swap" |
50 |
+ lvtemplate = "swap" |
+ lvtemplate = "swap" |
51 |
else: |
elif pool: |
52 |
idx = len(vg.lvs) |
pool_count = len([p for p in self.thinpools if p in vg.lvs]) |
53 |
while True: |
if pool_count: |