[bug#77943,1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd.
Commit Message
* gnu/services/shepherd.scm (shepherd-system-log-service-type):
Pass #:kernel-log-file.
Reported-by: Yelninei <yelninei@tutamail.com>
Change-Id: I6f7a4b4e8e69a116069886e3879400d600645b30
---
gnu/services/shepherd.scm | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -781,6 +781,15 @@ (define shepherd-system-log-service-type
(#f #~())
(value #~(#:message-destination #$value)))
+ ;; The Shepherd <= 1.0.4 chooses /proc/kmsg
+ ;; unconditionally. Fix that.
+ #:kernel-log-file
+ (cond ((string-contains %host-type "linux") ;Linux
+ "/proc/kmsg")
+ ((string-suffix? "-gnu" %host-type) ;GNU/Hurd
+ "/dev/klog")
+ (else #f))
+
#:date-format #$date-format
#:history-size #$history-size
#:max-silent-time #$max-silent-time)))))