]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/0006-Use-sbin-openrc-run-for-openrc-init-scripts.patch
add remaining zfs-0.7.6 changes as patches
[zfsonlinux.git] / zfs-patches / 0006-Use-sbin-openrc-run-for-openrc-init-scripts.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: BtbN <btbn@btbn.de>
3 Date: Thu, 17 Aug 2017 00:51:51 +0200
4 Subject: [PATCH] Use /sbin/openrc-run for openrc init scripts
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Using /sbin/runscript is deprecated and throws a QA warning
10 when still used in init scripts.
11
12 Reviewed-by: bunder2015 <omfgbunder@gmail.com>
13 Signed-off-by: BtbN <btbn@btbn.de>
14 Closes #6519
15 (cherry picked from commit 6116bbd7446f06d913415bdecb208a78b31db0af)
16 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
17 ---
18 etc/init.d/Makefile.am | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 diff --git a/etc/init.d/Makefile.am b/etc/init.d/Makefile.am
22 index 247db0aba..93432386a 100644
23 --- a/etc/init.d/Makefile.am
24 +++ b/etc/init.d/Makefile.am
25 @@ -22,7 +22,7 @@ $(init_SCRIPTS) $(initconf_SCRIPTS) $(initcommon_SCRIPTS):%:%.in
26 NFS_SRV=nfs; \
27 fi; \
28 if [ -e /sbin/openrc-run ]; then \
29 - SHELL=/sbin/runscript; \
30 + SHELL=/sbin/openrc-run; \
31 else \
32 SHELL=/bin/sh; \
33 fi; \
34 --
35 2.14.2
36