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 EFizBy/d9V8iKgAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 15:54:23 +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 yHl0Ay/d9V9RQAAAbx9fmQ (envelope-from ) for ; Wed, 06 Jan 2021 15:54:23 +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 D2C2594030E for ; Wed, 6 Jan 2021 15:54:22 +0000 (UTC) Received: from localhost ([::1]:40242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxB8f-000172-KP for larch@yhetil.org; Wed, 06 Jan 2021 10:54:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxB7O-0007uN-Nk for guix-patches@gnu.org; Wed, 06 Jan 2021 10:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxB7O-0004zA-8I for guix-patches@gnu.org; Wed, 06 Jan 2021 10:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxB7O-0001xK-5z for guix-patches@gnu.org; Wed, 06 Jan 2021 10:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45692] [PATCH 0/4] Even Better ZFS Support on Guix Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Jan 2021 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45692 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45692@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16099483617480 (code B ref -1); Wed, 06 Jan 2021 15:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2021 15:52:41 +0000 Received: from localhost ([127.0.0.1]:45290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxB73-0001wZ-0c for submit@debbugs.gnu.org; Wed, 06 Jan 2021 10:52:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:57622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxB71-0001wS-UI for submit@debbugs.gnu.org; Wed, 06 Jan 2021 10:52:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxB71-0007UT-Kb for guix-patches@gnu.org; Wed, 06 Jan 2021 10:52:39 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:27027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxB6y-0004kl-T8 for guix-patches@gnu.org; Wed, 06 Jan 2021 10:52:39 -0500 Date: Wed, 06 Jan 2021 15:52:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609948351; bh=TknNbLTq+VeNLmsLGnE7p1xFzzi5f2WTVcKGNIWanQY=; h=Date:To:From:Reply-To:Subject:From; b=Mx84byrn3tK4NM+AJUUvXRJ9lXoHEn6yAmR721X3SjqtAO51raC46MHFDxIkybo1S FkT5vnwtMVRzgVvSvXwtVwMUuR3TNEuDukiIUSRA+v/n6haXNsNmLDDKsmQyGvPQn+ Vn9iWm2dyNxIgbxzgr4oCD052k+f5VG9nXXrYq4g= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.135; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40135.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: -2.84 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=protonmail.com header.s=protonmail header.b=Mx84byrn; 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: D2C2594030E X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: lvXFWe9slSxp Hi all, Sorry for the excessive number of patches. This patchset contains 4 patches, two that add new features to Guix and do = not involve ZFS at all, one bugfix of the ZFS package, and one which makes = installing ZFS on Guix easy. * Patch 1: Create an extensible service type that installs kernel-loadable = modules into the kernel. * This allows a ZFS service to add the ZFS module to the kernel. * Patch 2: Make the `file-systems` shepherd service an extensible target, s= o that other services can add more requirements for `file-systems`. * This allows a ZFS service to make `file-systems` wait for the ZFS autom= ount at startup, which is necessary in any case in order to ensure that ZFS= has scanned for ZFS pools installed in the hardware. * Patch 3: Fix the ZFS package definition. * Patch 4: Add a ZFS service type that installs everything needed for basic= ZFS usage! I've tested the ZFS functionality in about a half-dozen VMs already, includ= ing checking that the ZFS setup persists across reboots of the VM: * No ZFS installed. * With ZFS installed but without any ZFS pools. * With ZFS pool that is automounted. * With ZFS pool in legacy mode (needs manual `mount -t zfs poolname /mountp= oint`). * Encrypted ZFS dataset (prompts passphrase at boot to mount). * Encrypted ZFS dataseet as `/home` (prompts passphrase at boot to mount, u= ser `/home` directories are created and maintained). Other bits of ZFS functionality would be *nice* but aren't in this patchset= yet (and at least for my purposes are not really necessary, except perhaps= the auto-scrubbing, I just need to wrap my head around `mcron`...): * Auto-scrubbing of ZFS pools to ensure no data corruption. * Auto-snapshotting of ZFS datasets to protect against user error. * `/` on ZFS. * `/boot` on ZFS. * Managing ZFS "legacy" mountpoints on `(file-system ...)` declarations. * Managing ZFS pool setup in the `operating-system` declaration somehow (no= t sure how to do this). Thanks raid5atemyhomework