Skip to content

Commit

Permalink
scripts: revert gpt partition info wipe as it breaks boot blocks
Browse files Browse the repository at this point in the history
this reverts commit 793423b as it seems
to break some boot blocks already written before it - proven to be the
case for the odroid_u3, but other systems might be affected as well
  • Loading branch information
hexdump0815 committed Mar 9, 2023
1 parent 6fcbb25 commit 3fec972
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/create-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ if [ "${CROSPARTS}" = "true" ]; then
else
if [ -f ${DOWNLOAD_DIR}/boot-${1}-${2}.dd ]; then
dd if=${DOWNLOAD_DIR}/boot-${1}-${2}.dd of=/dev/loop0
# clear the partition table and reread it via partprobe in case the boot
# blocks provided contained a gpt partition table which might confuse later
sgdisk -Z /dev/loop0
partprobe /dev/loop0
fi
fi

Expand Down

0 comments on commit 3fec972

Please # to comment.