From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Subject: [PATCH] linux-initrd: Introduce way to add more packages to initrd. Date: Mon, 25 Jul 2016 22:10:02 +0200 Message-ID: <20160725201002.7211-1-sleep_walker@gnu.org> References: <20160725074606.66hhcgeehmcsv2pf@venom> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRmCg-00059d-KV for guix-devel@gnu.org; Mon, 25 Jul 2016 16:10:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRmCc-0006VY-Da for guix-devel@gnu.org; Mon, 25 Jul 2016 16:10:17 -0400 In-Reply-To: <20160725074606.66hhcgeehmcsv2pf@venom> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/system/linux-initrd.scm(base-initrd): Add `extra-packages' parameter. --- gnu/system/linux-initrd.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 4934c92..1ba6692 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -139,6 +139,7 @@ MODULES and taken from LINUX." (virtio? #t) volatile-root? (linux-modules #f) + (extra-packages '()) (extra-modules '())) "Return a monadic derivation that builds a generic initrd, with kernel modules taken from LINUX. FILE-SYSTEMS is a list of file-systems to be @@ -209,7 +210,8 @@ loaded at boot time in the order in which they appear." '()) ,@(if volatile-root? (list unionfs-fuse/static) - '()))) + '()) + ,@extra-packages)) (define device-mapping-commands ;; List of gexps to open the mapped devices. -- 2.9.2