From 50983767b37ee20c8bb62553d72abfee4bb800dd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 19 Dec 2012 09:41:28 +0000 Subject: [PATCH] block-mount: add a delay between sto pand start in fstab init restart action, fixes a lock race condition observed in VirtualBox SVN-Revision: 34784 --- package/block-mount/Makefile | 2 +- package/block-mount/files/fstab.init | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package/block-mount/Makefile b/package/block-mount/Makefile index 799539e4bd..06deb9401d 100644 --- a/package/block-mount/Makefile +++ b/package/block-mount/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=block-mount PKG_VERSION:=0.2.0 -PKG_RELEASE:=9 +PKG_RELEASE:=10 include $(INCLUDE_DIR)/package.mk diff --git a/package/block-mount/files/fstab.init b/package/block-mount/files/fstab.init index f54051ebb7..4f1f6fb7a0 100644 --- a/package/block-mount/files/fstab.init +++ b/package/block-mount/files/fstab.init @@ -85,4 +85,8 @@ stop() { swapoff -a } - +restart() { + stop + sleep 1 + start +} -- 2.25.1