diff mbox series

[5/8] tegra: sysupgrade: remove MBR check

Message ID 20201125163341.2681-6-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>
---
 .../linux/tegra/base-files/lib/upgrade/platform.sh  | 13 -------------
 1 file changed, 13 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/tegra/base-files/lib/upgrade/platform.sh b/target/linux/tegra/base-files/lib/upgrade/platform.sh
index ea9bbe92bf56..05b48cd50a8a 100644
--- a/target/linux/tegra/base-files/lib/upgrade/platform.sh
+++ b/target/linux/tegra/base-files/lib/upgrade/platform.sh
@@ -1,23 +1,10 @@ 
 REQUIRE_IMAGE_METADATA=1
 
-get_magic_at() {
-	local pos="$2"
-	get_image "$1" | dd bs=1 count=2 skip="$pos" 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
-}
-
 platform_check_image() {
 	local diskdev partdev diff
 
 	[ "$#" -gt 1 ] && return 1
 
-	case "$(get_magic_at "$1" 510)" in
-		55aa) ;;
-		*)
-			echo "Failed to verify MBR boot signature."
-			return 1
-		;;
-	esac
-
 	export_bootdevice && export_partdevice diskdev 0 || {
 		echo "Unable to determine upgrade device"
 		return 1