jffs2reset: support fristboot on unmounted UBI overlay
authorDaniel Golle <daniel@makrotopia.org>
Mon, 4 Jan 2021 18:05:07 +0000 (18:05 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 4 Jan 2021 20:55:32 +0000 (20:55 +0000)
commitc53b18820756f6f32ad0782d3bf489422b7c4ad3
treeebb145b8f22dee9a9e3b57aab373480a287757fb
parentf415323b7c87d66ab11d89325937d5dae5eb65c9
jffs2reset: support fristboot on unmounted UBI overlay

To erase the overlay partitions on systems using UBIFS overlay,
instead of writing the jffs2-marker, truncating the UBI volume to 0
has the desired effect.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jffs2reset.c