Univention Bugzilla – Attachment 4808 Details for
Bug 29279
pvcreate schlägt fehl, wenn das physical volume nicht gelöscht wurde, aber die Partition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
first version for a fix
bug29279.patch (text/plain), 1.51 KB, created by
Sönke Schwardt-Krummrich
on 2012-11-19 13:56:38 CET
(
hide
)
Description:
first version for a fix
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2012-11-19 13:56:38 CET
Size:
1.51 KB
patch
obsolete
>diff --git a/ucs/base/univention-installer/installer/modules/65_partition.py b/ucs/base/univention-installer/installer/modules/65_partition.py >index eb8faa8..b377c7e 100644 >--- a/ucs/base/univention-installer/installer/modules/65_partition.py >+++ b/ucs/base/univention-installer/installer/modules/65_partition.py >@@ -1190,6 +1190,7 @@ class object(content): > device = self.get_real_partition_device_name(disk,num) > self.parent.debug('%s: lvm flag' % device) > ucsvgname = self.parent.container['lvm']['ucsvgname'] >+ self.run_cmd('/sbin/pvremove -ff %s 2>&1', device) > self.run_cmd('/sbin/pvcreate %s 2>&1' % device) > if not vgcreated: > self.run_cmd('/sbin/vgcreate --physicalextentsize %sk %s %s 2>&1' % (self.parent.container['lvm']['vg'][ ucsvgname ]['PEsize'], ucsvgname, device)) >diff --git a/ucs/base/univention-installer/installer/modules/66_gpt_partition.py b/ucs/base/univention-installer/installer/modules/66_gpt_partition.py >index 4d4d6c7..554c8d8 100644 >--- a/ucs/base/univention-installer/installer/modules/66_gpt_partition.py >+++ b/ucs/base/univention-installer/installer/modules/66_gpt_partition.py >@@ -1401,6 +1401,7 @@ class object(content): > if PARTFLAG_LVM in flaglist: > self.parent.debug('%s: lvm flag' % device) > ucsvgname = self.parent.container['lvm']['ucsvgname'] >+ self.run_cmd(['/sbin/pvremove', '-ff', device]) > self.run_cmd(['/sbin/pvcreate', device]) > if not vgcreated: > self.run_cmd(['/sbin/vgcreate', '--physicalextentsize',
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29279
: 4808