Skip to content

Commit

Permalink
Fix the error that 'sensord' daemon cannot be spawn correctly in pmon…
Browse files Browse the repository at this point in the history
… container (sonic-net#4354)

- This commit fixes the issue sonic-net#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>
  • Loading branch information
CharlieChenEC authored and tiantianlv committed Apr 24, 2020
1 parent 3cc6058 commit 48bfef2
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48bfef2

Please sign in to comment.