Revert "build: remove harmful -nopad option from mksquashfs"
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 6 Sep 2019 12:55:36 +0000 (14:55 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:24:26 +0000 (16:24 -0400)
commitec0759e540534e70d0bc01b37a9f7ea147586ceb
tree4f993ea70ff307b345305a0259642a0a46c895ae
parentcdcbcd5b5f5cdbec430c0a442cad0eadd8781ba0
Revert "build: remove harmful -nopad option from mksquashfs"

This reverts commit 1c0290c5cc6258c48b8ba46b4f9c85a21de4f875.

Dropping the nopad can make the padding overflow into the next erase
block on devices using a non-aligned rootfs start. This breaks the jffs2
overlay partition with the following messages:

[   30.343877] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[   30.376512] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[   30.385253] jffs2: empty_blocks 196, bad_blocks 0, c->nr_blocks 197

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(cherry picked from commit f11d90a76b719106336b94d85b166b4ebf19dbb0)
include/image.mk