From ddc1c8785261ea7fe9459cb35c4b2d9b2f4bc551 Mon Sep 17 00:00:00 2001 From: Juerg Haefliger Date: Fri, 22 Nov 2013 09:47:22 +0000 Subject: [PATCH] Fix partx usage error (#966574) --- 0001-supress-partx-usage-error.patch | 25 +++++++++++++++++++++++++ cloud-utils.spec | 9 +++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 0001-supress-partx-usage-error.patch diff --git a/0001-supress-partx-usage-error.patch b/0001-supress-partx-usage-error.patch new file mode 100644 index 0000000..1279a5d --- /dev/null +++ b/0001-supress-partx-usage-error.patch @@ -0,0 +1,25 @@ +From e14d60d17e4447a92c5127e0a5cc3312e0215014 Mon Sep 17 00:00:00 2001 +From: Juerg Haefliger +Date: Fri, 22 Nov 2013 09:40:21 +0100 +Subject: [PATCH] supress partx usage error + +--- + bin/growpart | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/growpart b/bin/growpart +index 85c2d1f..595c40b 100755 +--- a/bin/growpart ++++ b/bin/growpart +@@ -448,7 +448,7 @@ verify_ptupdate() { + fi + + if command -v partx >/dev/null 2>&1; then +- partx --help | grep -q -- --update || { ++ partx --help 2>/dev/null | grep -q -- --update || { + reason="partx has no '--update' flag in usage." + found="off" + } +-- +1.8.3.2 + diff --git a/cloud-utils.spec b/cloud-utils.spec index 7cea254..9b22fcf 100644 --- a/cloud-utils.spec +++ b/cloud-utils.spec @@ -1,13 +1,14 @@ Summary: Cloud image management utilities Name: cloud-utils Version: 0.27 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv3 Group: System Environment/Base URL: https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz Source0: %{name}-%{version}.tar.gz -Source1: LICENSE +Source1: LICENSE +Patch0: 0001-supress-partx-usage-error.patch # Don't build the cloud-utils main package on EPEL architectures that don't # have qemu-img. Which means we need to make it a no-noarch package for EPEL @@ -65,6 +66,7 @@ package to grow the root partition on first boot. %prep %setup -q +%patch0 -p1 %build @@ -118,6 +120,9 @@ cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/ %changelog +* Fri Nov 22 2013 Juerg Haefliger - 0.27-10 +- [966574] growpart spits out a non-fatal error + * Fri Aug 16 2013 Juerg Haefliger - 0.27-9 - Prevent building of debuginfo packages. - Fix 32-bit arch type.