]> git.ipfire.org Git - thirdparty/openwrt.git/commit
gemini: use tar stream to write firmware
authorLinus Walleij <linusw@kernel.org>
Thu, 29 Jan 2026 22:40:50 +0000 (23:40 +0100)
committerLinus Walleij <linusw@kernel.org>
Fri, 30 Jan 2026 13:33:34 +0000 (14:33 +0100)
commit1977301b5f8f76b4d04b5950b09b2fd7cf607bc4
tree669e974761d5c65e842760d72a9f3f2f4cb174bd
parent8ae035c1ab4e18bf7151644777939d3d9735f9d1
gemini: use tar stream to write firmware

The firmware update file can get big, so instead of extracting
the whole file into the tmp folder potentially running out of space
and make the upgrade fail, stream from tar xvf -O directly to the
mtd write command.

Refactor the checking of partitions and the actual upgrade into
two steps when we are at it.

Link: https://github.com/openwrt/openwrt/pull/21782
Signed-off-by: Linus Walleij <linusw@kernel.org>
target/linux/gemini/base-files/lib/upgrade/platform.sh