Jelajahi Sumber

kirkwood: fix sysupgrade

The platform_check_image() stub need to return 0 for success, otherwise
the sysupgrade will fail with:

  Image check 'platform_check_image' failed.

Fixes: aa6f5f1787a6 ("kirkwood: use image metadata")
Signed-off-by: 尤晓杰 <[email protected]>
[reworded commit message}
Signed-off-by: Mathias Kresin <[email protected]>
尤晓杰 7 tahun lalu
induk
melakukan
a7e62b4be1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      target/linux/kirkwood/base-files/lib/upgrade/platform.sh

+ 1 - 1
target/linux/kirkwood/base-files/lib/upgrade/platform.sh

@@ -4,7 +4,7 @@ RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
 REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
-	return 1
+	return 0
 }
 
 platform_do_upgrade() {