From unknown Mon Jun 16 23:52:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71657: Improve support for generating system images with different file systems Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 Jun 2024 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71657 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 71657@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171882833425079 (code B ref -1); Wed, 19 Jun 2024 20:19:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jun 2024 20:18:54 +0000 Received: from localhost ([127.0.0.1]:57727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK1lY-0006WH-E5 for submit@debbugs.gnu.org; Wed, 19 Jun 2024 16:18:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:43518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sK1lX-0006W8-0V for submit@debbugs.gnu.org; Wed, 19 Jun 2024 16:18:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sK1lT-0006iH-8I for bug-guix@gnu.org; Wed, 19 Jun 2024 16:18:43 -0400 Received: from mail-108-mta175.mxroute.com ([136.175.108.175]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sK1lR-00027r-07 for bug-guix@gnu.org; Wed, 19 Jun 2024 16:18:43 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta175.mxroute.com (ZoneMTA) with ESMTPSA id 1903226b46900017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 19 Jun 2024 20:18:35 +0000 X-Zone-Loop: 2944d767d65bb13f3a480409ba2bd39976be16e93dfa X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oM5xJx20VF98bOm2mJ9Rsv+p2/M5QONnDWt0QPx/+e0=; b=YUx0h80UIE9TDTErVdJwk0hpNe 8YmHMR+Y8chasdX5zxFXYZIACqqhq8kFLZ9/hKu9R+2vYPSe7t19dQrMZ2Cry9Lpl56dOYI/kQ0K2 EqeEZ2EzjQeCiK6JVIDYsh72OspfhaaQRV/6AEk5/GILFIbcQPk+8BewRb8+cLrHTxwK2a9oRZG0g /FdUsE05FLu8xi5Deufk/Gv6u+cCk5RjMUmLQoj4riY7HD5lgZ07NoICNPFe9QAiFrVIV71OyNxEV mZc5DE9WlmiYUQ5rIuI3i/XCJs9NCT8L3oYneHclu/e2T7TAIzfQI1N8lcqWeDx7apw5e5Y86FaBE D32pUVqg==; From: Richard Sent Date: Wed, 19 Jun 2024 16:18:27 -0400 Message-ID: <878qz0sn3g.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.175; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta175.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Guix! I was surprised to find out that $ guix system image and pals only support a small subset of the file systems Guix has available. (ext2-4, vfat, and fat32) What's more, even if an alternative file system is supported (it's not) changing the root filesystem format alongside an operating-system is a fairly involved process. By default, image constructors seem to ignore the file-system field of an operating system when generating partitions and formatting them. I think the following changes would be ideal: 1. Add more make-*-image functions to gnu/build/image.scm to support common file systems people would want to use. 2. Capture the root filesystem type from an operating-system record and use it when generating the root filesystem partition on the image. It's not always possible to manually partition disks and run guix system init (cloud providers, efi bootloader installation on sbcs) ahead of time on an external machine, so I feel there is a valid use case here. If nothing else, I'd like a warning to be emitted if an operating-system's file-system structure does not match what $ guix system image generates. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.