From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 03 20:02:38 2021 Received: (at submit) by debbugs.gnu.org; 4 Jan 2021 01:02:38 +0000 Received: from localhost ([127.0.0.1]:38991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwEGc-0003YF-5o for submit@debbugs.gnu.org; Sun, 03 Jan 2021 20:02:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:49194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwEGa-0003Y6-7y for submit@debbugs.gnu.org; Sun, 03 Jan 2021 20:02:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwEGa-0008GA-1N for guix-patches@gnu.org; Sun, 03 Jan 2021 20:02:36 -0500 Received: from mail-40141.protonmail.ch ([185.70.40.141]:61963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwEGW-0007z5-Rx for guix-patches@gnu.org; Sun, 03 Jan 2021 20:02:35 -0500 Date: Mon, 04 Jan 2021 01:02:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609722149; bh=MtqWHyTFjXNj1OdDmkAr8BW1wORE+xVii4yjgrLSxps=; h=Date:To:From:Reply-To:Subject:From; b=w1qPPJO5E51voUjL+dikvhipST8akHybLqX3vN2rKbKcmTwmLq5DTSJcKiHbZjj6P WxcSoe6U+EynhpNQQuVs6NJufstQATRLFuMmF4bqh6HUA8b6QocZGpTasOs/FUEeRJ oHXBCMiL/8i6EZt/M4o42ZCMs6tsHT4jTHKDpy1M= To: "guix-patches@gnu.org" From: raid5atemyhomework Subject: [PATCH 0/3] Better Support for ZFS on Guix Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.141; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40141.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_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ZFS package is broken, and we should really recompile ZFS at each kernel up= date anyway. This patchset includes: * Patch 1: * Fixes for "util-linux" dependency which causes problems with mounting Z= FS datasets. * Expose a "make-zfs-package" procedure to create kernel-specific ZFS pac= kages as suggested here: https://issues.guix.gnu.org/45403#3 * Add a service "zfs-loader-service-type" that provisions "zfs-loader", t= hat modprobes ZFS and automounts ZFS datasets at bootup. The latter behavio= r is what is expected of ZFS from other OSs, so it's best to imitate that a= s well. * Document how to set up and use the above. * This makes ZFS on Guix actually *possible*. Tested in a VM. * Patch 2: * Make the "file-systems" provisioning service a target similar to "user-= processes", so that other services can insert themselves into "file-systems= " mounting. * Make the "zfs-loader" part of the "file-systems" target if it is instan= tiated. * This enables /home on ZFS (previous patch is not enough as "user-homes"= service is part of the "user-processes"; we need to make ZFS loading and m= ounting earlier). * Patch 3 * Disable checking of "device" field for declared file-systems that are o= f type "zfs". * Make file-systems of type "zfs" dependent on "zfs-loader" to ensure tha= t "zfs" module is loaded and all pools are imported and known by the ZFS mo= dule. * This enables declaring ZFS datasets as (file-system ...) declarations, = if the sysad wants to explicitly document the mountpoints in the configurat= ion file rather than having ZFS manage mountpoints.