From patchwork Thu Jul 4 14:22:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "pelzflorian (Florian Pelz)" X-Patchwork-Id: 65916 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 6D29E27BBE2; Thu, 4 Jul 2024 15:25:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8A54E27BBE9 for ; Thu, 4 Jul 2024 15:25:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPNOS-0000Pk-9M; Thu, 04 Jul 2024 10:25:04 -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 1sPNOP-0000P6-5j for guix-patches@gnu.org; Thu, 04 Jul 2024 10:25:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPNOO-0005TE-Tq for guix-patches@gnu.org; Thu, 04 Jul 2024 10:25:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPNOQ-0002vh-2u for guix-patches@gnu.org; Thu, 04 Jul 2024 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71940] [PATCH] system: images: Add comment how to enlarge visionfive2 root partition. Resent-From: Florian Pelz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Jul 2024 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71940 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71940@debbugs.gnu.org Cc: Florian Pelz X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172010306411194 (code B ref -1); Thu, 04 Jul 2024 14:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2024 14:24:24 +0000 Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPNNn-0002uT-TN for submit@debbugs.gnu.org; Thu, 04 Jul 2024 10:24:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:48536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPNNl-0002uK-3o for submit@debbugs.gnu.org; Thu, 04 Jul 2024 10:24:22 -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 1sPNNi-0008VX-BZ for guix-patches@gnu.org; Thu, 04 Jul 2024 10:24:18 -0400 Received: from relay.yourmailgateway.de ([46.38.247.119]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPNNg-0003cN-19 for guix-patches@gnu.org; Thu, 04 Jul 2024 10:24:18 -0400 Received: from mors-relay-8404.netcup.net (localhost [127.0.0.1]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4WFJmq34PLz84ZH for ; Thu, 4 Jul 2024 16:24:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1720103051; bh=afLZAYixHS9jzi027kFFeB+TQ60RLk9choA6+FBD2bY=; h=From:To:Cc:Subject:Date:From; b=fWwZYjOLGLMmeQfM0zYbUV3jpuDbPFjQB9GOJuL5NhfNmWi1KCPrqlxQ8Xy8m5UMW kL1sBzjAzWf9CG8jxufEGOetQ14vYH0o88esVd2MPbKGeU61m42HI1l2D1Mdtz0hHu hUyjxtUOgNotB+Hu2Uyd7MGdL4QGtPyaB0696MBTvqlKWR/fqKhDGCvzDkX/WhE2T4 uByyaxWcdW0tnrC6WAOQVqXpT4Ptm2bzAUJe6eWFhR6hcnL+8VnGXCdFUSB1lgP/8w Bse/a+lZy1QMy5tRErg9tTkLCvJM9Ru1qCBqgVWikqvNh0EitUnf+WOvQzvOtdd7aY yOKU8PYm84lqw== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8404.netcup.net (Postfix) with ESMTPS id 4WFJmq2hSNz4xtf for ; Thu, 4 Jul 2024 16:24:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4WFJmn0ZGQz8t4J for ; Thu, 4 Jul 2024 16:24:08 +0200 (CEST) Received: from florianhp.fritz.box (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 586C384032; Thu, 4 Jul 2024 16:24:03 +0200 (CEST) From: Florian Pelz Date: Thu, 4 Jul 2024 16:22:38 +0200 Message-ID: <8b8be3032e77e3b0ad1a224aa819663f2fcfe9fb.1720102754.git.pelzflorian@pelzflorian.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: 586C384032 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: RPbsUvd4d9jSt8zhaU0xsTiz3QcOO6iz8ejNfKQoRK/IWfORBnXTZEw7 Received-SPF: pass client-ip=46.38.247.119; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.de 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, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches fdisk as documented upstream does *not* work and breaks boot on 4 microSD cards that I tried. * gnu/system/images/visionfive2.scm: Add comment. [visionfive2-barebones-os]: Add `parted'. Remove not generally useful `cloud-utils', 'neofetch' packages. Change-Id: Ibcb6fd70e3ecc194187c4e882e983740349960cc --- gnu/system/images/visionfive2.scm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) base-commit: 3979812d4923e980f0069ad99332e2df7c033769 diff --git a/gnu/system/images/visionfive2.scm b/gnu/system/images/visionfive2.scm index 26f70afbc1..731fd8fa47 100644 --- a/gnu/system/images/visionfive2.scm +++ b/gnu/system/images/visionfive2.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2024 Florian Pelz ;;; ;;; This file is part of GNU Guix. ;;; @@ -19,19 +20,13 @@ (define-module (gnu system images visionfive2) #:use-module (gnu bootloader) #:use-module (gnu bootloader u-boot) - #:use-module (gnu services dbus) - #:use-module (gnu services dns) - #:use-module (gnu services avahi) - #:use-module (gnu services shepherd) #:use-module (gnu services ssh) #:use-module (gnu services networking) #:use-module (gnu image) - #:use-module (gnu packages linux) #:use-module (guix packages) + #:use-module (gnu packages disk) #:use-module (gnu packages ssh) - #:use-module (gnu packages guile-xyz) - #:use-module (gnu packages admin) #:use-module (gnu services) #:use-module (gnu services base) #:use-module (gnu services networking) @@ -54,6 +49,10 @@ (define-module (gnu system images visionfive2) ;;; uboot> setenv fdtfile starfive/jh7110-starfive-visionfive-2-v1.3b.dtb ;;; uboot> saveenv ;;; +;;; Use parted and resize2fs to enlarge the root partition. While StarFive +;;; recommends using fdisk and not parted in their Quick Start Guide, for +;;; this Guix System image, this would give us an unbootable state. +;;; ;;; Code: (define visionfive2-barebones-os @@ -71,7 +70,7 @@ (define visionfive2-barebones-os %base-file-systems)) (kernel-arguments (list "earlycon" "clk_ignore_unused")) (firmware '()) - (packages (append (list cloud-utils neofetch) %base-packages)) + (packages (append (list parted) %base-packages)) (services (append (list (service openssh-service-type (openssh-configuration