aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2020-11-25 17:33:38 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-11-25 18:39:12 +0100
commitfa9e8a008a1e207137f8cddb3fe0f877465e93d9 (patch)
tree2c61bdccc69db6d84be73d2f77e4c8ce7ab9d7d6
parent456f5680db29d0354be7dcb6d22a760abd4209c0 (diff)
downloadupstream-fa9e8a008a1e207137f8cddb3fe0f877465e93d9.tar.gz
upstream-fa9e8a008a1e207137f8cddb3fe0f877465e93d9.tar.bz2
upstream-fa9e8a008a1e207137f8cddb3fe0f877465e93d9.zip
tegra: sysupgrade: remove redundant MBR check
This is already done by get_partitions. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> [add "redundant" to title] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r--target/linux/tegra/base-files/lib/upgrade/platform.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/target/linux/tegra/base-files/lib/upgrade/platform.sh b/target/linux/tegra/base-files/lib/upgrade/platform.sh
index ea9bbe92bf..05b48cd50a 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