summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-22 15:11:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-22 15:11:27 +0000
commit889e1e4bff325eaea1d5246eea08edece63ac256 (patch)
tree8e843958efcfa117cee36c57605b835649df2c2c /package/base-files/files/etc/init.d
parentbc1fc688afcc974ac4deb417a51061975fd0aef5 (diff)
downloadmtk-20170518-889e1e4bff325eaea1d5246eea08edece63ac256.zip
mtk-20170518-889e1e4bff325eaea1d5246eea08edece63ac256.tar.gz
mtk-20170518-889e1e4bff325eaea1d5246eea08edece63ac256.tar.bz2
fstools: update to the latest version, makes interrupted first boot more reliable
Use xattr to store the filesystem initialization state of the overlay. As long as the filesystem is not marked as initialized yet (happens in /etc/init.d/done), all overlay data (except for sysupgrade.tgz) will be discarded before the system is allowed to boot Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44942
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-xpackage/base-files/files/etc/init.d/done2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done
index ed75e40..374353a 100755
--- a/package/base-files/files/etc/init.d/done
+++ b/package/base-files/files/etc/init.d/done
@@ -3,7 +3,7 @@
START=95
boot() {
- [ -d /tmp/root ] && mount_root done
+ mount_root done
rm -f /sysupgrade.tgz
# process user commands