[openwrt/openwrt] fstools: fix 'firstboot' on unmounted UBIFS overlay

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 4 16:07:58 EST 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/498fb1b8aa5f314206af78ca0e6d118f9f51c937

commit 498fb1b8aa5f314206af78ca0e6d118f9f51c937
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Jan 4 21:01:05 2021 +0000

    fstools: fix 'firstboot' on unmounted UBIFS overlay
    
    The usual OpenWrt-way of writing the JFFS2-marker in order to have
    a filesystem erased at the next boot fails on UBIFS volumes due to
    UBI being a different beast when it comes to writing.
    As truncating a UBIFS volume only takes a few milliseconds and has the
    desired effect of wiping-out all content of that volume, just do that
    instead.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/system/fstools/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index bd4825b9f9..2da508d541 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -12,9 +12,9 @@ PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git
-PKG_MIRROR_HASH:=22670e033b5623348de37c1d1e69caf799752b38205be8b25bc7020ef9e69884
-PKG_SOURCE_DATE:=2020-12-12
-PKG_SOURCE_VERSION:=f415323b7c87d66ab11d89325937d5dae5eb65c9
+PKG_MIRROR_HASH:=a485792d90c71cd4fb396ce97f42a57ee4d2a3d78e5f3fd0748270ffb14209e6
+PKG_SOURCE_DATE:=2021-01-04
+PKG_SOURCE_VERSION:=c53b18820756f6f32ad0782d3bf489422b7c4ad3
 CMAKE_INSTALL:=1
 
 PKG_LICENSE:=GPL-2.0



More information about the lede-commits mailing list