summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-01-19 13:19:38 +0100
committerKarel Kočí <cynerd@email.cz>2021-01-19 13:20:24 +0100
commitb949c727fab509e1650563b2fcce9c0a6c5548ff (patch)
tree8d234655a6d6f1204790a21061c4612db7d54da9
parent0ecd65eab91e6c796cd4a0aa5364349518cbfa19 (diff)
downloadopenwrt-personal-pkgs-b949c727fab509e1650563b2fcce9c0a6c5548ff.tar.gz
openwrt-personal-pkgs-b949c727fab509e1650563b2fcce9c0a6c5548ff.tar.bz2
openwrt-personal-pkgs-b949c727fab509e1650563b2fcce9c0a6c5548ff.zip
mount-data: scan btrfs filesystems after open
-rw-r--r--mount-data/Makefile2
-rwxr-xr-xmount-data/files/init1
2 files changed, 2 insertions, 1 deletions
diff --git a/mount-data/Makefile b/mount-data/Makefile
index 69f082b..6fc688c 100644
--- a/mount-data/Makefile
+++ b/mount-data/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mount-data
-PKG_VERSION:=1.0.1
+PKG_VERSION:=1.0.2
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
diff --git a/mount-data/files/init b/mount-data/files/init
index c9706f5..700ea40 100755
--- a/mount-data/files/init
+++ b/mount-data/files/init
@@ -37,6 +37,7 @@ status() {
start() {
is_open a || open a /dev/sda
is_open b || open b /dev/sdb
+ btrfs device scan /dev/mapper/data_a /dev/mapper/data_b
is_mounted "/data" || mount_btrfs @data /data
is_mounted "/srv" || mount_btrfs @srv /srv
}