freebsd-src/release/tools
Mitchell Horne 2af03ebfb8 release: make SD card partition layout more flexible
Currently the partition layout is hardcoded to create an EFI/FAT
partition and a UFS root partition, with some logic to handle GPT/MBR
differences.

On RISC-V platforms we are seeing the emerging pattern that firmware
should be placed in a partition of a known type, rather than just a
known sector of the disk. Thus, some functionality is needed to
customize the layout for SD card images.

Add a hook, arm_create_partitions(), which can be overridden to insert
additional platform-specific partitions, possibly preceding the standard
EFI and UFS ones. A couple of new variables are added to track the
indices, e.g. ROOTFSPART_SUFFIX=p2.

In a couple places this de-duplicates the GPT/MBR logic.

Reviewed by:	manu, karels, imp
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D43848
2024-02-14 11:16:54 -04:00
..
arm.subr release: make SD card partition layout more flexible 2024-02-14 11:16:54 -04:00
azure.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
basic-ci.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ec2-base.conf EC2: Split off reusable configuration bits 2023-09-28 15:18:46 -07:00
ec2-cloud-init.conf EC2: Add experimental cloud-init images 2023-09-28 15:18:46 -07:00
ec2.conf EC2: Bump AMI size to 6 GB 2023-12-28 14:24:46 -08:00
gce.conf release: remove inet blackhole sysctls from GCE config 2023-09-06 14:56:40 -04:00
oci.conf OCI: Bump image size to 6 GB 2023-08-06 18:51:35 -07:00
openstack.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vagrant-virtualbox.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vagrant-vmware.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vagrant.conf release: Add the Ed25519 vagrant insecure key 2024-02-02 21:05:49 -07:00
vmimage.subr release: Add missing /var/crash ZFS dataset 2024-01-02 12:51:13 -05:00