From 1cfb7eccdecf720fc03bd08e1002ab67628ade57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> Date: Wed, 5 Jun 2019 13:03:15 +0200 Subject: [PATCH] patches/openwrt: fix problem with fstabs service restart --- ...ls-block-mount-fix-restart-for-fstab.patch | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 patches/openwrt/to-upstream/0024-fstools-block-mount-fix-restart-for-fstab.patch diff --git a/patches/openwrt/to-upstream/0024-fstools-block-mount-fix-restart-for-fstab.patch b/patches/openwrt/to-upstream/0024-fstools-block-mount-fix-restart-for-fstab.patch new file mode 100644 index 000000000..86ef5a281 --- /dev/null +++ b/patches/openwrt/to-upstream/0024-fstools-block-mount-fix-restart-for-fstab.patch @@ -0,0 +1,43 @@ +From aaa140d6907873027ac4552b3c477729b65ed4bd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> +Date: Wed, 5 Jun 2019 13:01:43 +0200 +Subject: [PATCH] fstools: block-mount: fix restart for fstab + +Default restart calls stop and then start. That causes this service to +just call block unmount but they are never mounted back. +--- + package/system/fstools/Makefile | 2 +- + package/system/fstools/files/fstab.init | 4 ++++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile +index 3c318df..3aa250f 100644 +--- a/package/system/fstools/Makefile ++++ b/package/system/fstools/Makefile +@@ -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 +diff --git a/package/system/fstools/files/fstab.init b/package/system/fstools/files/fstab.init +index 5faa8ec..afed78e 100644 +--- a/package/system/fstools/files/fstab.init ++++ b/package/system/fstools/files/fstab.init +@@ -11,6 +11,10 @@ start() { + echo "this file has been obsoleted. please call \"/sbin/block mount\" directly" + } + ++restart() { ++ start ++} ++ + stop() { + /sbin/block umount + } +-- +2.21.0 + -- GitLab