From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#22050: [PATCH v2 2/2] services: base: Use make-static-device-nodes. Date: Wed, 13 Dec 2017 23:17:59 +0100 Message-ID: <20171213221759.1955-3-dannym@scratchpost.org> References: <20171213220445.1056-1-dannym@scratchpost.org> <20171213221759.1955-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePFOj-0000Iw-A9 for bug-guix@gnu.org; Wed, 13 Dec 2017 17:21:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFOh-0000DG-3r for bug-guix@gnu.org; Wed, 13 Dec 2017 17:21:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePFOh-0000D6-0Y for bug-guix@gnu.org; Wed, 13 Dec 2017 17:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePFOg-00086o-R1 for bug-guix@gnu.org; Wed, 13 Dec 2017 17:21:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20171213221759.1955-1-dannym@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 22050@debbugs.gnu.org, ludo@gnu.org * gnu/services/base.scm (udev-shepherd-service): Use make-static-device-nodes. --- gnu/services/base.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 291dd6325..e1098b6d8 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1727,6 +1727,8 @@ item of @var{packages}." (setenv "EUDEV_RULES_DIRECTORY" #$(file-append rules "/lib/udev/rules.d")) + (make-static-device-nodes (string-append #$kmod "/bin/kmod")) + (let ((pid (primitive-fork))) (case pid ((0) @@ -1750,7 +1752,10 @@ item of @var{packages}." ;; When halting the system, 'udev' is actually killed by ;; 'user-processes', i.e., before its own 'stop' method was called. ;; Thus, make sure it is not respawned. - (respawn? #f))))))) + (respawn? #f) + ;; We need additional modules. + (modules `((gnu build linux-boot) + ,@%default-modules)))))))) (define udev-service-type (service-type (name 'udev)