[packages/ganeti-p2v-transfer] - wait for kpartx to finish before using partitions it created

baggins baggins at pld-linux.org
Sat Feb 22 21:09:27 CET 2014


commit 5bbfc9f670b915037eec0ae06a9e071a8be98e2d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Feb 22 21:03:53 2014 +0100

    - wait for kpartx to finish before using partitions it created

 ganeti-p2v-transfer.spec |  2 ++
 kpartx-sync.patch        | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/ganeti-p2v-transfer.spec b/ganeti-p2v-transfer.spec
index de9988a..d06e797 100644
--- a/ganeti-p2v-transfer.spec
+++ b/ganeti-p2v-transfer.spec
@@ -7,6 +7,7 @@ Group:		Applications/System
 Source0:	https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
 # Source0-md5:	c0333098304fa1868ffcaa82a942eba0
 Patch0:		DESTDIR.patch
+Patch1:		kpartx-sync.patch
 URL:		https://code.google.com/p/ganeti/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -50,6 +51,7 @@ as necessary to gain access to the bootstrap OS.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal}
diff --git a/kpartx-sync.patch b/kpartx-sync.patch
new file mode 100644
index 0000000..573470b
--- /dev/null
+++ b/kpartx-sync.patch
@@ -0,0 +1,11 @@
+--- ganeti-p2v-transfer-0.1/instance-p2v-target/common.sh.in~	2013-07-11 11:50:24.000000000 +0200
++++ ganeti-p2v-transfer-0.1/instance-p2v-target/common.sh.in	2014-02-06 15:51:47.751092320 +0100
+@@ -105,7 +105,7 @@
+     log_error "Cannot interpret kpartx output and get partition mapping"
+     exit 1
+   fi
+-  kpartx -a -p- $blockdev > /dev/null
++  kpartx -a -s -p- $blockdev > /dev/null
+   filesystem_dev="/dev/mapper/$filesystem_dev_base"
+   if [ ! -b "$filesystem_dev" ]; then
+     log_error "Can't find kpartx mapped partition: $filesystem_dev"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ganeti-p2v-transfer.git/commitdiff/5a80a011d6175937ed7994e4b423d78201ad8bcf



More information about the pld-cvs-commit mailing list