
There is an issue on Debian iso when re-installing which halts the bootstrap with the error: Failed to wipe signatures on logical volume cgts-vg/pgsql-lv. Aborting. Failed to wipe start of new LV. This commit fixes this issue. Test Plan: Debian: PASS: Build package PASS: Build image PASS: Install controller PASS: Re-install controller PASS: Controller unlocked/enabled/available Story: 2009101 Task: 44883 Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com> Change-Id: Ibd10aacda1deeff9415fd556d12143a1598d3559
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From bf53ce258c7e06cc9dc0e315ee52f41e6a92a108 Mon Sep 17 00:00:00 2001
|
|
From: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
|
|
Date: Thu, 31 Mar 2022 14:59:12 -0300
|
|
Subject: [PATCH] Debian: Fix issue on re-install
|
|
|
|
There is an issue on Debian iso when re-installing which halts the
|
|
bootstrap with the error:
|
|
|
|
Failed to wipe signatures on logical volume cgts-vg/pgsql-lv.
|
|
Aborting. Failed to wipe start of new LV.
|
|
|
|
This commit fixes this issue.
|
|
|
|
Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
|
|
---
|
|
lib/puppet/provider/logical_volume/lvm.rb | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/puppet/provider/logical_volume/lvm.rb b/lib/puppet/provider/logical_volume/lvm.rb
|
|
index df333f3..322c6e4 100644
|
|
--- a/lib/puppet/provider/logical_volume/lvm.rb
|
|
+++ b/lib/puppet/provider/logical_volume/lvm.rb
|
|
@@ -85,7 +85,7 @@ Puppet::Type.type(:logical_volume).provide :lvm do
|
|
end
|
|
|
|
def create
|
|
- args = []
|
|
+ args = ['-y', '-Wy', '-Zy']
|
|
|
|
args.push('-n', @resource[:name]) unless @resource[:thinpool] == true
|
|
|
|
@@ -174,6 +174,7 @@ Puppet::Type.type(:logical_volume).provide :lvm do
|
|
else
|
|
args << @resource[:volume_group]
|
|
end
|
|
+ info("Calling lvcreate with args: #{args}")
|
|
lvcreate(*args)
|
|
lvzero
|
|
end
|
|
--
|
|
2.17.1
|
|
|