diff mbox series

[1/1] base-files: fix nand.sh to remove metadata before ubiformat

Message ID 20200725165149.3726-2-todorcolov@abv.bg
State Rejected
Headers show
Series base-files: fix nand.sh to remove metadata before ubiformat command | expand

Commit Message

Todor Colov July 25, 2020, 4:51 p.m. UTC
Signed-off-by: Todor Colov <todorcolov@abv.bg>
---
 package/base-files/files/lib/upgrade/nand.sh | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
index e7d7bf8d13..923c01a72d 100644
--- a/package/base-files/files/lib/upgrade/nand.sh
+++ b/package/base-files/files/lib/upgrade/nand.sh
@@ -224,6 +224,7 @@  nand_upgrade_ubinized() {
 	local mtddev="/dev/mtd${mtdnum}"
 	ubidetach -p "${mtddev}" || true
 	sync
+	fwtool -q -t -i /dev/null "$1"
 	ubiformat "${mtddev}" -y -f "${ubi_file}"
 	ubiattach -p "${mtddev}"
 	nand_do_upgrade_success