From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sN/DAfLE8F+bLQAA0tVLHw (envelope-from ) for ; Sat, 02 Jan 2021 19:09:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GPENOfHE8F8RKwAAbx9fmQ (envelope-from ) for ; Sat, 02 Jan 2021 19:09:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BBEA2940105 for ; Sat, 2 Jan 2021 19:09:37 +0000 (UTC) Received: from localhost ([::1]:34280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvmHQ-0002XN-OP for larch@yhetil.org; Sat, 02 Jan 2021 14:09:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvmGs-0002I6-BP for guix-patches@gnu.org; Sat, 02 Jan 2021 14:09:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvmGs-0005Yg-4f for guix-patches@gnu.org; Sat, 02 Jan 2021 14:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kvmGr-0007Pr-WF for guix-patches@gnu.org; Sat, 02 Jan 2021 14:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45592] [PATCH] gnu, doc: Create and document procedure to compile ZFS for specific kernel. Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Jan 2021 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45592 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "45592@debbugs.gnu.org" <45592@debbugs.gnu.org> Received: via spool by 45592-submit@debbugs.gnu.org id=B45592.160961453428491 (code B ref 45592); Sat, 02 Jan 2021 19:09:01 +0000 Received: (at 45592) by debbugs.gnu.org; 2 Jan 2021 19:08:54 +0000 Received: from localhost ([127.0.0.1]:60917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvmGj-0007PT-Kv for submit@debbugs.gnu.org; Sat, 02 Jan 2021 14:08:53 -0500 Received: from mail-40138.protonmail.ch ([185.70.40.138]:21588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvmGg-0007PA-Ob for 45592@debbugs.gnu.org; Sat, 02 Jan 2021 14:08:52 -0500 Date: Sat, 02 Jan 2021 19:08:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609614524; bh=Y4BsUfVH5s2EpnO8zxDFXRICUCS8eBIH9+e0mLEkOP8=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=R6Y1AKfMrQdcsiVO7x7NB79C8z5A5/8mfaloQC55sVZHRMq+uvRGnZtsv1hUdYA8H qzJ6rBty2g0Df3NjXcyaAzoFTs1hcV0uHZMvvu8nL0zHgyH5MIl72DrGEsfHNHucb/ GKmLxxn5O0SmxGpu5okWM8dxhtg7gNWOxQgt1/qQ= Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: raid5atemyhomework , raid5atemyhomework via Guix-patches From: raid5atemyhomework via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=protonmail.com header.s=protonmail header.b=R6Y1AKfM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BBEA2940105 X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: UfkRRDZkhD2S An alternative interface for installing ZFS would be something like this: @deffn (Scheme Procedure) install-zfs-on-operating-system @var{kernel} @var= {base-operating-system} Modifies the given @code{base-operating-system} to include support for ZFS = pools and filesystems. The operating system kernel will be forced to the given @code{kernel}, and = a kernel-specific version of the @code{zfs} package will be compiled and loaded into the oper= ating system at startup. The userland tools for ZFS will also be globally installed. @end deffn @lisp (use-package-modules ; @dots{} linux file-systems) ;; @dots{} (install-zfs-on-operating-system linux-libre-5.4 (operating-system ;; @dots{} )) @end lisp This reduces the number of modifications that the end-user has to make in t= he configuration file, but at the cost of requiring an extra layer of inden= ts. Here;s a sketch of what it would be like: ```scheme (define-public (install-zfs-on-operating-system kernel base-operating-syste= m) (define system-zfs (make-zfs-package kernel)) (operating-system (inherit base-operating-system) (kernel kernel) (kernel-loadable-modules (cons (list system-zfs "module") (operating-system-kernel-loadable-module= s base-operating-system))) (packages (cons system-zfs (operating-system-packages base-operating-sy= stem))) (services (cons (service zfs-loader-service-type system-zfs) (operating-system-services base-operating-system))) (location (operating-system-location base-operating-system)))) ```