diff --git a/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/0007-Debian-Fix-issue-on-re-install.patch b/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/0007-Debian-Fix-issue-on-re-install.patch new file mode 100644 index 000000000..c37f38a6d --- /dev/null +++ b/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/0007-Debian-Fix-issue-on-re-install.patch @@ -0,0 +1,42 @@ +From bf53ce258c7e06cc9dc0e315ee52f41e6a92a108 Mon Sep 17 00:00:00 2001 +From: Fabricio Henrique Ramos +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 +--- + 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 + diff --git a/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/series b/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/series index bb619db46..a36c67d2a 100644 --- a/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/series +++ b/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/patches/series @@ -4,3 +4,4 @@ 0004-Extending-nuke_fs_on_resize_failure-functionality.patch 0005-Fix-the-logical-statement-for-nuke_fs_on_resize.patch 0006-Wipe-10MB-after-we-lvextend-the-partitions.patch +0007-Debian-Fix-issue-on-re-install.patch