diff mbox series

[1/8] mvebu: sysupgrade: remove MBR check

Message ID 20201125163341.2681-2-tmn505@gmail.com
State Accepted
Headers show
Series mvebu, tegra: sync sysupgrade with x86 changes | expand

Commit Message

Tomasz Maciej Nowak Nov. 25, 2020, 4:33 p.m. UTC
This is already done by get_partitions.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
---
 target/linux/mvebu/base-files/lib/upgrade/sdcard.sh | 12 ------------
 1 file changed, 12 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh b/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
index 184803a50f14..d16ddc500079 100644
--- a/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
+++ b/target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
@@ -1,19 +1,7 @@ 
-get_magic_at() {
-	local file="$1"
-	local pos="$2"
-	get_image "$file" | dd bs=1 count=2 skip="$pos" 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
-}
-
 platform_check_image_sdcard() {
 	local file="$1"
 	local magic diskdev partdev diff
 
-	magic=$(get_magic_at "$file" 510)
-	[ "$magic" != "55aa" ] && {
-		echo "Failed to verify MBR boot signature."
-		return 1
-	}
-
 	export_bootdevice && export_partdevice diskdev 0 || {
 		echo "Unable to determine upgrade device"
 	return 1