From patchwork Wed Jan 6 15:52:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: raid5atemyhomework X-Patchwork-Id: 26243 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E7F1527BC0F; Wed, 6 Jan 2021 15:54:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A8C4427BC0E for ; Wed, 6 Jan 2021 15:54:21 +0000 (GMT) Received: from localhost ([::1]:40242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxB8e-000172-M3 for patchwork@mira.cbaines.net; Wed, 06 Jan 2021 10:54:20 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: raid5atemyhomework , raid5atemyhomework via Guix-patches X-Patchwork-Original-From: raid5atemyhomework via Guix-patches via From: raid5atemyhomework X-getmail-retrieved-from-mailbox: Patches 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, so that other services can add more requirements for `file-systems`. * This allows a ZFS service to make `file-systems` wait for the ZFS automount 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, including 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 /mountpoint`). * Encrypted ZFS dataset (prompts passphrase at boot to mount). * Encrypted ZFS dataseet as `/home` (prompts passphrase at boot to mount, user `/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 (not sure how to do this). Thanks raid5atemyhomework