--- /dev/null
+From: Owen Synge <osynge@suse.com>
+Date: Thu, 7 Aug 2014 10:21:18 +0200
+Subject: [PATCH] cephdisk:Preparing a block device add --mbrtogpt to sgdisk.
+
+Convert an MBR or BSD disklabel disk to a GPT disk. As a safety
+measure, use of this option is required on MBR or BSD disklabel
+disks if you intend to save your changes, in order to prevent
+accidentally damaging such disks.
+---
+ src/ceph-disk | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ceph-disk b/src/ceph-disk
+index c67f2f3..0920b68 100755
+--- a/src/ceph-disk
++++ b/src/ceph-disk
+@@ -1191,6 +1191,7 @@ def prepare_dev(
+ command_check_call(
+ [
+ 'sgdisk',
++ '--mbrtogpt',
+ '--largest-new=1',
+ '--change-name=1:ceph data',
+ '--partition-guid=1:{osd_uuid}'.format(
+-------------------------------------------------------------------
+Thu Aug 7 10:37:32 UTC 2014 - osynge@suse.com
+
+- Work around MBR breaking ceph-disk
+ + Fix bnc#890738
+ + Accepted patch from Dirk Mueller <dmueller@suse.com>
+- Install 95-ceph-osd-alt.rules on older suse versions.
+ + Fix bnc#890736
+ + Suggestion from Dirk Mueller <dmueller@suse.com>
+
-------------------------------------------------------------------
Thu Aug 7 08:45:27 UTC 2014 - tbehrens@suse.com
Patch0014: 0014-osdmaptool-test-map-pgs.t-fix-escap.patch
Patch0015: 0015-Convert-remaining-init-script-actio.patch
Patch0016: 0016-Fix-bnc-890345-wrong-service-name-f.patch
+Patch0017: 0017-cephdisk-Preparing-a-block-device-a.patch
# Please do not add patches manually here, run update_git.sh.
#################################################################################
%patch0014 -p1
%patch0015 -p1
%patch0016 -p1
+%patch0017 -p1
%build
# udev rules
install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
+%if (0%{?suse_version} < 1310 || 0%{?rhel} < 7)
+install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%else
install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%endif
#set up placeholder directories
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd
# udev rules
install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
+%if (0%{?suse_version} < 1310 || 0%{?rhel} < 7)
+install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%else
install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
+%endif
#set up placeholder directories
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd