From fcdcd34d509bc1daf38559c802d8b45680fddaec Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 20 Feb 2025 14:46:28 -0500 Subject: components/boot, teams/server: Add partitioning hack for the Raspberry Pi 3 The Raspberry Pi 3 does not recognize a FAT filesystem marked with the 0xef type, so until we drop support for this device, hack the partition manually to use a legacy FAT filesystem partition type. --- editbootinstall_rpilegacy.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 editbootinstall_rpilegacy.sh (limited to 'editbootinstall_rpilegacy.sh') diff --git a/editbootinstall_rpilegacy.sh b/editbootinstall_rpilegacy.sh new file mode 100755 index 0000000..dfa178f --- /dev/null +++ b/editbootinstall_rpilegacy.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -euxo pipefail + +diskname=$1 +devname="$2" +loopname="${devname%*p?}" +loopdev=/dev/${loopname#/dev/*} + +#========================================== +# Force the ESP to use legacy MBR identifier +#------------------------------------------ +# +# Raspberry Pi 3 and older systems don't handle +# the 0xef partition type for the ESP, so switch +# to the legacy one. +# +sfdisk --change-id ${loopdev} 1 6 -- cgit v1.3.1+13