diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-19 15:51:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-20 11:52:23 +0100 |
commit | 287bd01a6a2600f784c15d9f45cf48051df9bc7c (patch) | |
tree | d672b019978344f270632d3b4808e480a28bea13 /common | |
parent | b4b4c28214545524d90efed5ebb24054cec78e4e (diff) | |
download | barebox-287bd01a6a2600f784c15d9f45cf48051df9bc7c.tar.gz barebox-287bd01a6a2600f784c15d9f45cf48051df9bc7c.tar.xz |
partitions: efi: Allow to create barebox environment partition
We have a GUID for partitions to use for barebox environment. Add an
option for parted to create these.
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20240219145159.1962618-2-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/partitions/efi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/partitions/efi.c b/common/partitions/efi.c index 67d4978244..51e92f65c5 100644 --- a/common/partitions/efi.c +++ b/common/partitions/efi.c @@ -559,6 +559,7 @@ static __maybe_unused struct partition_desc *efi_partition_create_table(struct b static guid_t partition_linux_data_guid = PARTITION_LINUX_DATA_GUID; static guid_t partition_basic_data_guid = PARTITION_BASIC_DATA_GUID; +static guid_t partition_barebox_env_guid = PARTITION_BAREBOX_ENVIRONMENT_GUID; static const guid_t *fs_type_to_guid(const char *fstype) { @@ -572,6 +573,8 @@ static const guid_t *fs_type_to_guid(const char *fstype) return &partition_basic_data_guid; if (!strcmp(fstype, "fat32")) return &partition_basic_data_guid; + if (!strcmp(fstype, "bbenv")) + return &partition_barebox_env_guid; return NULL; } |