From: Gabriel Wicki <gabriel@erlikon.ch>
To: 66448@debbugs.gnu.org
Subject: [bug#66448] [PATCH] image: Add 'lba partition label.
Date: Tue, 10 Oct 2023 18:29:26 +0200 [thread overview]
Message-ID: <xfgq5yq6qbqweg5mwx6e6srwucjpmthpsvj72o7zf3yqlfdgt6@gvf4couknkqz> (raw)
Some (embedded) system create FAT32/LBA partitions first, i thought this
is too easy to not include in Guix.
Please let me know if I can improve anything!
TIA for review and merge
From c5080162e8a77f60aaf9a967a896f57c113dde47 Mon Sep 17 00:00:00 2001
Message-ID: <c5080162e8a77f60aaf9a967a896f57c113dde47.1696954175.git.gabriel@erlikon.ch>
From: Gabriel Wicki <gabriel@erlikon.ch>
Date: Tue, 10 Oct 2023 18:02:04 +0200
Subject: [PATCH] image: Add 'lba partition label.
* gnu/image.scm (validate-partition-flags): Add lba to the valid flags.
* doc/guix.texi ('partition' Reference): Document it.
---
doc/guix.texi | 10 ++++++----
gnu/image.scm | 2 +-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index ad26a29513..95aae6ac02 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -45590,10 +45590,12 @@ partition Reference
@item @code{flags} (default: @code{'()})
The partition flags as a list of symbols. Possible values are
-@code{'boot} and @code{'esp}. The @code{'boot} flags should be set if
-you want to boot from this partition. Exactly one partition should have
-this flag set, usually the root one. The @code{'esp} flag identifies a
-UEFI System Partition.
+@code{'boot}, @code{'esp} and @code{'lba}. The @code{'boot} flags
+should be set if you want to boot from this partition. Exactly one
+partition should have this flag set, usually the root one. The
+@code{'esp} flag identifies a UEFI System Partition. The @code{'lba}
+flag @acronym{LBA, Local Block Addressing} allows for bigger FAT
+partitions than 8GiB.
@item @code{initializer} (default: @code{#false})
The partition initializer procedure as a gexp. This procedure is called
diff --git a/gnu/image.scm b/gnu/image.scm
index 523653dd77..493aea94cd 100644
--- a/gnu/image.scm
+++ b/gnu/image.scm
@@ -100,7 +100,7 @@ (define-with-syntax-properties (validate-partition-offset (value properties))
;; The supported partition flags.
(define-with-syntax-properties (validate-partition-flags (value properties))
- (let ((bad-flags (lset-difference eq? value '(boot esp))))
+ (let ((bad-flags (lset-difference eq? value '(boot esp lba))))
(unless (and (list? value) (null? bad-flags))
(raise
(make-compound-condition
base-commit: f4e8baf3806e79d7111d2943859865ae4ee0b59d
--
2.41.0
next reply other threads:[~2023-10-10 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 16:29 Gabriel Wicki [this message]
2023-10-11 8:51 ` [bug#66448] [PATCH] image: Add 'lba partition label Mathieu Othacehe
2023-10-11 8:55 ` Gabriel Wicki
2023-10-13 13:02 ` Mathieu Othacehe
2023-10-17 12:27 ` Gabriel Wicki
2023-10-17 13:12 ` bug#66448: " Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xfgq5yq6qbqweg5mwx6e6srwucjpmthpsvj72o7zf3yqlfdgt6@gvf4couknkqz \
--to=gabriel@erlikon.ch \
--cc=66448@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).