aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-29 03:41:48 +0200
committerJohn Crispin <blogic@openwrt.org>2016-04-29 04:15:46 +0200
commit33de8c77e2654a7c9e2a86b834adf5d4e5dfe38d (patch)
treebd1a28fbc4b579666ec443179aa564ae819dc65c /package/system
parent0fae7270cf5ddd208ece90bac9e94cf51b69c70a (diff)
downloadupstream-33de8c77e2654a7c9e2a86b834adf5d4e5dfe38d.tar.gz
upstream-33de8c77e2654a7c9e2a86b834adf5d4e5dfe38d.tar.bz2
upstream-33de8c77e2654a7c9e2a86b834adf5d4e5dfe38d.zip
fstools: fix snapshot support
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system')
-rw-r--r--package/system/fstools/files/snapshot8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/system/fstools/files/snapshot b/package/system/fstools/files/snapshot
index a0e0ec0c33..c1a5b733f3 100644
--- a/package/system/fstools/files/snapshot
+++ b/package/system/fstools/files/snapshot
@@ -24,14 +24,14 @@ do_config_unpack() {
}
do_snapshot_push() {
- cd /volatile
+ cd /volatile/upper
tar czf /tmp/snapshot.tar.gz *
snapshot_tool write
reboot
}
do_config_push() {
- cd /volatile
+ cd /volatile/upper
tar czf /tmp/config.tar.gz *
snapshot_tool config_write
}
@@ -66,7 +66,7 @@ do_convert() {
. /lib/upgrade/common.sh
ubus call system upgrade
touch /tmp/sysupgrade
- cd /overlay
+ cd /overlay/upper
tar czf /tmp/snapshot.tar.gz *
kill_remaining TERM
sleep 3
@@ -82,7 +82,7 @@ convert)
esac
}
-[ -d /volatile ] && {
+[ -d /volatile/upper ] && {
case $1 in
push)
do_snapshot_push