From debbugs-submit-bounces@debbugs.gnu.org Fri May 20 16:32:45 2022 Received: (at 55406) by debbugs.gnu.org; 20 May 2022 20:32:45 +0000 Received: from localhost ([127.0.0.1]:40175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns9If-0001fV-KG for submit@debbugs.gnu.org; Fri, 20 May 2022 16:32:45 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:58629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns8i9-0000hH-A9 for 55406@debbugs.gnu.org; Fri, 20 May 2022 15:54:58 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 413D6320096C for <55406@debbugs.gnu.org>; Fri, 20 May 2022 15:54:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 20 May 2022 15:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1653076490; x=1653162890; bh=O4VdmWTmofyZC1gQkQS/C+2XhToW2ndFtaW 2uYVubpQ=; b=ah5JDnKGmT2Uh9pamEum60F714iWqgt4z7Joq9RrmsgNjEt+1/i fnjw05LQkyrXkEZH7pBaWnuebB5lu4OLgbu1w7aH+wWGA/24w4+Dz3h2MMRwb8a0 7TZKYoDQEFbpnBbBXg6Wstq5v3PyLN9arZlmpZHpLzeFQEB46zGee/eK03ajOprm sVdRvc7VGu6qC2Sd0mFvwfOMDAsGR7dkrnGhyumN0CxB14BQRuP4fsf80R0lFxN+ uTRh/4EBUAvf06/jPF0a3JaR446xYewGa+bMcQ1okvA9LbwOI21FC8KjTDQpTnaU INDyRx2D8hYDvOffeHZoj3IFK/ihrBQTDHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1653076490; x= 1653162890; bh=O4VdmWTmofyZC1gQkQS/C+2XhToW2ndFtaW2uYVubpQ=; b=S dCtQozNMxlzMIKgOU1O4/pFCYnCYyUexbukQsrjmipYgZDu0njePPTNxPktFVuXs LiXdV2PJXFLONLvVJukuDZoHmuvTdBPOWFC/4V2M3CLu6nTMX2LApQKwgnZPuRJy Oml5tw9DOvoQ97ER8lvJPVXGKsqMR4cGsFTFgwXXeg5iOwedLJQsLkvwYQKmYbpE wRwcp2broOXTBXfUDIWmctUxv/urMJB8Tz9uhjQL1sLRh7QYzTlzoGfb8zOLgkC4 5qZx6/SWbPbjikMPFGZupocFsEeiG/o1+t3EguLnGr/IyIVWNz4nHR0AJyzLDPF0 TGV4sgDByAIE2QGDzAKMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrieefgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhtggguffkfffvofesmhdtmherhh dtvdenucfhrhhomheprfgrvhgvlhcuufhhlhihrghkuceophdrshhhlhihrghksehprghn thhhvghrgidrohhrgheqnecuggftrfgrthhtvghrnhepjeeiheefieevtefghfegveefhe duffekfeegkeegkefghfefleeljeegvdfhledunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepphdrshhhlhihrghksehprghnthhhvghrgidroh hrgh X-ME-Proxy: Feedback-ID: idda946d0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <55406@debbugs.gnu.org>; Fri, 20 May 2022 15:54:50 -0400 (EDT) From: Pavel Shlyak Content-Type: multipart/mixed; boundary="Apple-Mail=_3E4E0DCA-B609-474E-A9E2-3E49666CC6CC" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: WIP: Image API support for fat16 partitions Message-Id: Date: Fri, 20 May 2022 22:54:47 +0300 To: 55406@debbugs.gnu.org X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55406 X-Mailman-Approved-At: Fri, 20 May 2022 16:32:41 -0400 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: -1.7 (-) --Apple-Mail=_3E4E0DCA-B609-474E-A9E2-3E49666CC6CC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii This patch fixes GPT support for fat partitions. Should be applied after = gpt-support-vfat-partitions.patch --Apple-Mail=_3E4E0DCA-B609-474E-A9E2-3E49666CC6CC Content-Disposition: attachment; filename=gpt-support-vfat-partitions.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="gpt-support-vfat-partitions.patch" Content-Transfer-Encoding: 7bit diff --git a/gnu/system/image.scm b/gnu/system/image.scm index a83f844682..a6267feab2 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm @@ -317,10 +317,15 @@ (define (partition->dos-type partition) (define (partition->gpt-type partition) ;; Return the genimage GPT partition type code corresponding to PARTITION. ;; See https://github.com/pengutronix/genimage/blob/master/README.rst - (let ((flags (partition-flags partition))) + (let ((flags (partition-flags partition)) (file-system (partition-file-system partition))) (cond ((member 'esp flags) "U") - (else "L")))) + ((string-prefix? "ext" file-system) "L") + ((string=? file-system "vfat") "F") + (else + (raise (condition + (&message + (message "unsupported partition type")))))))) (define (partition-image partition) ;; Return as a file-like object, an image of the given PARTITION. A --Apple-Mail=_3E4E0DCA-B609-474E-A9E2-3E49666CC6CC--