fstools: block-mount: fix restart of fstab service

This commit is contained in:
CN_SZTL 2019-08-16 13:26:09 +08:00
parent f34849195e
commit ded6de12fc
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 5 additions and 14 deletions

2
package/system/fstools/Makefile Executable file → Normal file
View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fstools
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/fstools.git

View File

@ -11,6 +11,10 @@ start() {
echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
}
restart() {
start
}
stop() {
/sbin/block umount
}

View File

@ -1,13 +0,0 @@
diff --git a/libfstools/rootdisk.c b/libfstools/rootdisk.c
index dd00c1b..f3b87fc 100644
--- a/libfstools/rootdisk.c
+++ b/libfstools/rootdisk.c
@@ -270,7 +270,7 @@ static int rootdisk_volume_init(struct volume *v)
if (rootdisk_use_f2fs(p))
snprintf(str, sizeof(str), "mkfs.f2fs -q -l rootfs_data %s", v->blk);
else
- snprintf(str, sizeof(str), "mkfs.ext4 -q -L rootfs_data %s", v->blk);
+ snprintf(str, sizeof(str), "mkfs.ext4 -q -E lazy_itable_init=0,lazy_journal_init=0 -L rootfs_data %s", v->blk);
ret = system(str);
break;
default: