From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QGyzIiuPg2ThMQAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 22:44:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8K6xIiuPg2TCZAEA9RJhRA (envelope-from ) for ; Fri, 09 Jun 2023 22:44:27 +0200 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 3EE9F12FFD for ; Fri, 9 Jun 2023 22:44:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7ixs-0005EO-9K; Fri, 09 Jun 2023 16:44:08 -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 1q7ixo-0005C8-HO for guix-patches@gnu.org; Fri, 09 Jun 2023 16:44:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7ixn-0005ht-BR for guix-patches@gnu.org; Fri, 09 Jun 2023 16:44:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7ixm-0007tM-Qp for guix-patches@gnu.org; Fri, 09 Jun 2023 16:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63766] [PATCH 0/4] Image for HiFive Unmatched Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 20:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63766 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: Tobias Geerinckx-Rice , Simon Tournier , paren@disroot.org, Christopher Baines , 63766@debbugs.gnu.org, Ricardo Wurmus , Raghav Gururajan , jgart , Mathieu Othacehe Received: via spool by 63766-submit@debbugs.gnu.org id=B63766.168634340030257 (code B ref 63766); Fri, 09 Jun 2023 20:44:02 +0000 Received: (at 63766) by debbugs.gnu.org; 9 Jun 2023 20:43:20 +0000 Received: from localhost ([127.0.0.1]:32783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7iwu-0007rj-1x for submit@debbugs.gnu.org; Fri, 09 Jun 2023 16:43:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7iwp-0007rA-AR for 63766@debbugs.gnu.org; Fri, 09 Jun 2023 16:43:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7iwa-0005YV-DL; Fri, 09 Jun 2023 16:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ygJRFT+R0AafBgAo1T1dkVO72Des+8Lec2KcNHt5sSs=; b=lPeYAfMLQn9Q112G8a22 8oLwQSor2HFaQ3CGRfqlPs9CU4uaa9GhMAkogleskQygibtyelGDNYTjvuLv0Rrr8MyneP69bO2gk dU00rhaZfO5FcZo9wOCqc71GGguqSfg0y2WaQq/kOaq8ZIqG1C0s8FHcA9lYZOfAf1gSDkZ5GB2vp DQI9LMzs1oSQpAtu7HCLAsjZTIR5oKIAV/dfPt8ya8Y7JmGA9wS574oapmozOdtvVfxEw/Js9xoXl fBMAvrXsvrUFfZKhLXdhxSi58czyBySFWrefS6vF6uc4BMBXgsrz5ps7Iy79/iiPZMhl6rmrvOb2k KG08Ytk2tFOxvw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7iwU-0007ns-2B; Fri, 09 Jun 2023 16:42:47 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Fri, 09 Jun 2023 22:42:37 +0200 In-Reply-To: (Efraim Flashner's message of "Sun, 28 May 2023 12:44:19 +0300") Message-ID: <87jzwcv03m.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686343467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ygJRFT+R0AafBgAo1T1dkVO72Des+8Lec2KcNHt5sSs=; b=NCFCnfV+E16R11+8Wr0w/Cah9XPvYfTI/TlAlZNDIzzVaQ+0loX/tl6pIdfCh+cFzKFEM3 f6oeyXAogUVoOXZL3U3kA/53lqKeNEG1GDcY1chQtVAXD3y95iEzD6sdrSjP4uGsOaer19 k0imwfln2kUotGZh+HxpLiOzeXqZiDf3WP0xeyGViHMBO28A1VQzWrfLrPNZ7FloMpUrGR kIMM3qxolKKwpAaNV3/U5KdHHjxudhVp8zfyiY78c9Edi642WaVk/1Q6kEEsr8mYUfTGsu 4+YtsXBjMYu437PZORvsR3AMpN2vnn2iDQu3e8AInRv6GYTOPXZAqg3c+YeIBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lPeYAfML; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686343467; a=rsa-sha256; cv=none; b=m/8KCpbXPVrSLBtklMBSeqhlpYcWkRVWAKSiA/0eeZHpqWH60LsB67o29kqSD6SvL4elEz Hi47dyRva2tPS5A24i4R9RSqvc4hcnuKFlBWIlhNHavCHFXveBKDXXBp4u7KVEXJhapyxw aCkc0PJtzmJ77KzI4pOgus6BNAnAsEHoGUw2451RKHsGbzNCRTksoU3UcjoDoBv7jpUr21 5tYJr4a4+eCts8GlvNuHoccr7Yrm7hMuTBK8NpuzXghCif+8yeyhn2dyq2pD/u/Og61Snt pIW8aR6Rct2CTlfJF70a8pIwMVFqJ/bFqrCMvtAtD/slTX+45nc8+b6kP7akcw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=lPeYAfML; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3EE9F12FFD X-Spam-Score: -2.61 X-TUID: 8CGgDlp4qPUu Efraim Flashner skribis: > * gnu/build/image.scm (make-unformatted-image): New procedure. > (make-partition-image): Add support for unformatted partition. > * gnu/system/image.scm (system-disk-image)[partition->gpt-type]: Add > case for using unformatted partition uuid. > [partition-image]: Add coreutils to image-builder closure. [...] > +(define* (make-unformatted-image partition target) > + "Make an unformatted partition of a certain size." > + (let ((size (partition-size partition))) > + (invoke "truncate" "--size" (number->string size) target))) Simply: (truncate-file target size). > - (inputs '#+(list e2fsprogs fakeroot dosfstools mtoo= ls)) > + (inputs '#+(list e2fsprogs ; ext2/3/4 > + fakeroot > + dosfstools ; vfat > + mtools ; vfat > + coreutils)) ; truncate And this can be dropped. Ludo=E2=80=99.