Fix the error that 'sensord' daemon cannot be spawn correctly in pmon container (#4354)

- This commit fixes the issue #4021 (Sensord not able to start up on
  both master and 201911 branches)
- Add the new patch file for "lm-sensors" to perform dh_installinit to
  include sensord.init in the packed deb. So that the missing init
  script file for 'sensord' will be included in the created 'sensord'
  deb.

Signed-off-by: Charlie Chen <charlie_chen@edge-core.com>
This commit is contained in:
CharlieChenEC 2020-04-04 03:48:47 +08:00 committed by GitHub
parent c5c1ae2173
commit abbd871d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,23 @@
From b11fd3d516b62c01513d289bc901820aa150c63e Mon Sep 17 00:00:00 2001
From: Charlie Chen <charlie_chen@edge-core.com>
Date: Wed, 1 Apr 2020 06:59:06 +0000
Subject: Patch to peform dh_installinit to include sensord.install in the
packed deb
Signed-off-by: Charlie Chen <charlie_chen@edge-core.com>
---
debian/rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lm-sensors/lm-sensors-3.4.0/debian/rules b/src/lm-sensors/lm-sensors-3.4.0/debian/rules
index 5ebda06..1d77e28 100755
--- a/src/lm-sensors/lm-sensors-3.4.0/debian/rules
+++ b/src/lm-sensors/lm-sensors-3.4.0/debian/rules
@@ -56,3 +56,4 @@ override_dh_auto_install-arch:
override_dh_installinit-arch:
dh_installinit -plm-sensors --no-start
+ dh_installinit -psensord --no-start
--
2.17.1