1 |
diff -Nur anaconda-13.21.239/storage/__init__.py anaconda-13.21.239_bz9080/storage/__init__.py |
2 |
--- anaconda-13.21.239/storage/__init__.py 2015-09-30 11:38:16.573437546 +0200 |
3 |
+++ 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] |
6 |
if hn is not None and hn != '': |
7 |
if hn == 'localhost' or hn == 'localhost.localdomain': |
8 |
- vgtemplate = "VolGroup" |
9 |
+ vgtemplate = "main" |
10 |
elif hn.find('.') != -1: |
11 |
template = "vg_%s" % (hn.split('.')[0].lower(),) |
12 |
vgtemplate = safeLvmName(template) |
13 |
@@ -976,7 +976,7 @@ |
14 |
template = "vg_%s" % (hn.lower(),) |
15 |
vgtemplate = safeLvmName(template) |
16 |
else: |
17 |
- vgtemplate = "VolGroup" |
18 |
+ vgtemplate = "main" |
19 |
|
20 |
if vgtemplate not in vgnames and \ |
21 |
vgtemplate not in lvm.lvm_vg_blacklist: |
22 |
@@ -1001,12 +1001,12 @@ |
23 |
if mountpoint: |
24 |
# try to incorporate the mountpoint into the name |
25 |
if mountpoint == '/': |
26 |
- lvtemplate = 'lv_root' |
27 |
+ lvtemplate = 'root' |
28 |
else: |
29 |
if mountpoint.startswith("/"): |
30 |
- template = "lv_%s" % mountpoint[1:] |
31 |
+ template = "%s" % mountpoint[1:] |
32 |
else: |
33 |
- template = "lv_%s" % (mountpoint,) |
34 |
+ template = "%s" % (mountpoint,) |
35 |
|
36 |
lvtemplate = safeLvmName(template) |
37 |
else: |
38 |
@@ -1014,13 +1014,13 @@ |
39 |
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]) |
41 |
while True: |
42 |
- lvtemplate = "lv_swap%02d" % idx |
43 |
+ lvtemplate = "swap%02d" % idx |
44 |
if lvtemplate in [lv.lvname for lv in vg.lvs]: |
45 |
idx += 1 |
46 |
else: |
47 |
break |
48 |
else: |
49 |
- lvtemplate = "lv_swap" |
50 |
+ lvtemplate = "swap" |
51 |
elif pool: |
52 |
pool_count = len([p for p in self.thinpools if p in vg.lvs]) |
53 |
if pool_count: |