1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Dominic=20J=C3=A4ger?= <d.jaeger@proxmox.com>
3 Date: Mon, 3 Feb 2020 11:57:22 +0100
4 Subject: [PATCH] Remove failing actions from prerm
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The first part of the script fails (/sbin/stop doesn't exist and invoke-rc.d
10 fails) and doesn't let us continue to #DEBHELPER#. #DEBHELPER#, however, gets
11 replaced by a systemd call that successfully stops the ceph services.
13 Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
14 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 debian/ceph-base.prerm | 17 -----------------
17 debian/ceph-mds.prerm | 17 -----------------
18 debian/ceph-mgr.prerm | 17 -----------------
19 debian/ceph-mon.prerm | 17 -----------------
20 debian/ceph-osd.prerm | 17 -----------------
21 5 files changed, 85 deletions(-)
23 diff --git a/debian/ceph-base.prerm b/debian/ceph-base.prerm
24 index bfd7d3d6f..37460790a 100644
25 --- a/debian/ceph-base.prerm
26 +++ b/debian/ceph-base.prerm
35 - [ -x /sbin/stop ] && stop ceph-all || true
36 - invoke-rc.d ceph stop || {
38 - if [ $RESULT != 100 ]; then
51 diff --git a/debian/ceph-mds.prerm b/debian/ceph-mds.prerm
52 index 654518a7d..37460790a 100644
53 --- a/debian/ceph-mds.prerm
54 +++ b/debian/ceph-mds.prerm
63 - [ -x /sbin/stop ] && stop ceph-mds-all || :
64 - invoke-rc.d ceph stop mds || {
66 - if [ $RESULT != 100 ]; then
79 diff --git a/debian/ceph-mgr.prerm b/debian/ceph-mgr.prerm
80 index 6fb7b245a..37460790a 100644
81 --- a/debian/ceph-mgr.prerm
82 +++ b/debian/ceph-mgr.prerm
91 - [ -x /sbin/stop ] && stop ceph-mgr-all || :
92 - invoke-rc.d ceph stop mgr || {
94 - if [ $RESULT != 100 ]; then
107 diff --git a/debian/ceph-mon.prerm b/debian/ceph-mon.prerm
108 index 5f64058a5..37460790a 100644
109 --- a/debian/ceph-mon.prerm
110 +++ b/debian/ceph-mon.prerm
113 # vim: set noet ts=8:
119 - [ -x /sbin/stop ] && stop ceph-mon-all || true
120 - invoke-rc.d ceph stop mon || {
122 - if [ $RESULT != 100 ]; then
135 diff --git a/debian/ceph-osd.prerm b/debian/ceph-osd.prerm
136 index 40f07b621..37460790a 100644
137 --- a/debian/ceph-osd.prerm
138 +++ b/debian/ceph-osd.prerm
141 # vim: set noet ts=8:
147 - [ -x /sbin/stop ] && stop ceph-osd-all || true
148 - invoke-rc.d ceph stop osd || {
150 - if [ $RESULT != 100 ]; then