From: Luka Perkov Date: Tue, 10 May 2016 22:36:44 +0000 (+0000) Subject: fstools: fix snapshot support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4c46722d98e1fe5f2bd07c9d3b09cf907a739f15;p=openwrt%2Fsvn-archive%2Farchive.git fstools: fix snapshot support Signed-off-by: John Crispin SVN-Revision: 49337 --- 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