[Pkg-ceph-commits] [ceph] 01/01: d/p/fix-systemd-escaping.patch: Ensure that leading '/' is stripped from block device paths when escaping for use in systemd unit names.
James Downing Page
jamespage at moszumanska.debian.org
Tue Feb 9 11:05:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch ubuntu-xenial
in repository ceph.
commit 7def0e9c8b92914785337bb77bc4b20617ebc66d
Author: James Page <james.page at ubuntu.com>
Date: Tue Feb 9 11:04:03 2016 +0000
d/p/fix-systemd-escaping.patch: Ensure that leading '/' is stripped from block device paths when escaping for use in systemd unit names.
---
debian/changelog | 8 ++++++++
debian/patches/fix-systemd-escaping.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
3 files changed, 25 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index bc107c9..60cc503 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ceph (9.2.0-0ubuntu4) xenial; urgency=medium
+
+ * d/p/fix-systemd-escaping.patch: Ensure that leading '/' is stripped
+ from block device paths when escaping for use in systemd unit
+ names.
+
+ -- James Page <james.page at ubuntu.com> Tue, 09 Feb 2016 11:03:03 +0000
+
ceph (9.2.0-0ubuntu3) xenial; urgency=medium
* d/ceph{-common}.install: Move ceph_daemon module to common package
diff --git a/debian/patches/fix-systemd-escaping.patch b/debian/patches/fix-systemd-escaping.patch
new file mode 100644
index 0000000..29d2764
--- /dev/null
+++ b/debian/patches/fix-systemd-escaping.patch
@@ -0,0 +1,16 @@
+Description: Ensure that leading / is stripped from device paths
+Author: James Page <james.page at ubuntu.com>
+Bug: http://tracker.ceph.com/issues/14706
+Forwarded: no
+
+--- a/src/ceph-disk
++++ b/src/ceph-disk
+@@ -2998,7 +2998,7 @@ def main_trigger(args):
+ LOG.debug("main_trigger: " + str(args))
+ if is_systemd() and not args.sync:
+ # http://www.freedesktop.org/software/systemd/man/systemd-escape.html
+- escaped_dev = args.dev.replace('-', '\\x2d')
++ escaped_dev = args.dev[1:].replace('-', '\\x2d')
+ service='ceph-disk@{dev}.service'.format(dev=escaped_dev)
+ LOG.info('systemd detected, triggering %s' % service)
+ command(
diff --git a/debian/patches/series b/debian/patches/series
index 01bcfa2..afc98e7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -20,3 +20,4 @@ fix-cycles-arch.patch
#vivid-does-systemd.patch
flock-location-debian.patch
ceph-detect-init-ubuntu.patch
+fix-systemd-escaping.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list