aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/glusterfs/files/glusterfs-disable-default-startup-scripts.patch
blob: 7a72e9cb8571a1cf6fb45972011ca0cb32b98a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From bbc23b4723a5f60f2b6f4daf734194f9a3a315d8 Mon Sep 17 00:00:00 2001
From: Donn Seeley <donn.seeley@windriver.com>
Date: Wed, 24 Apr 2019 22:41:04 -0400
Subject: [PATCH] Add the glusterfs package

The glusterfs code for installing start-up scripts checks for systemd
directories on the build host, and if it finds them, it chooses systemd
style scripts, otherwise init.d style scripts.  This behavior might
conceivably be suitable for self-hosted builds, but it's grossly broken
for cross-build environments.  Since we want to install custom scripts
regardless of which script style we support, we patch glusterfs so that
it doesn't install any of its default start-up scripts.

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
[Xulin: minor adjust to apply the patch]
Signed-off-by: Xulin Sun <xulin.sun@windriver.com>
[Yi: minor adjust to apply the patch on 3.11.1]
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
[modify patch for release-6.1]
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
---
 extras/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: glusterfs-11.1/extras/Makefile.am
===================================================================
--- glusterfs-11.1.orig/extras/Makefile.am
+++ glusterfs-11.1/extras/Makefile.am
@@ -10,7 +10,7 @@
 EditorModedir = $(docdir)
 EditorMode_DATA = glusterfs-mode.el glusterfs.vim
 
-SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
+SUBDIRS = benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
           $(GEOREP_EXTRAS_SUBDIR) snap_scheduler firewalld cliutils python \
 		  ganesha command-completion