sd-image: optimise sfdisk call for image building

When building an image, rather than operating on a real partition,
there's no need to have sfdisk tell the kernel to reread the partition
table.  This also avoids a call to sync(2), which could be very
expensive depending on what other IO is going on on the system at the time.
This commit is contained in:
Alyssa Ross 2024-08-24 14:28:01 +02:00
parent a4638fa3cb
commit 148261d04b
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -209,7 +209,7 @@ in
# type=b is 'W95 FAT32', type=83 is 'Linux'.
# The "bootable" partition is where u-boot will look file for the bootloader
# information (dtbs, extlinux.conf file).
sfdisk $img <<EOF
sfdisk --no-reread --no-tell-kernel $img <<EOF
label: dos
label-id: ${config.sdImage.firmwarePartitionID}