From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Subject: [PATCH 1/2] linux-initrd: Introduce way to add more packages to initrd. Date: Tue, 2 Aug 2016 09:43:17 +0200 Message-ID: <20160802074318.2572-2-sleep_walker@gnu.org> References: <87a8gwxzm4.fsf@igalia.com> <20160802074318.2572-1-sleep_walker@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUXdw-00049O-GQ for guix-devel@gnu.org; Tue, 02 Aug 2016 07:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUXds-0007DW-Ca for guix-devel@gnu.org; Tue, 02 Aug 2016 07:13:51 -0400 In-Reply-To: <20160802074318.2572-1-sleep_walker@gnu.org> 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 bbaa5c0..1676684 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -138,6 +138,7 @@ MODULES and taken from LINUX." qemu-networking? (virtio? #t) volatile-root? + (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 @@ -208,7 +209,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