From bc1fc688afcc974ac4deb417a51061975fd0aef5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 22 Mar 2015 15:11:20 +0000 Subject: base-files: keep sysupgrade.tgz until /etc/init.d/done has been called This makes interrupted boots after sysupgrade more reliable Signed-off-by: Felix Fietkau SVN-Revision: 44941 --- package/base-files/files/lib/preinit/80_mount_root | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'package/base-files/files/lib/preinit') diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root index 0292d82d4a..f3fe788e19 100644 --- a/package/base-files/files/lib/preinit/80_mount_root +++ b/package/base-files/files/lib/preinit/80_mount_root @@ -8,10 +8,7 @@ do_mount_root() { [ -f /sysupgrade.tgz ] && { echo "- config restore -" cd / - mv sysupgrade.tgz /tmp - tar xzf /tmp/sysupgrade.tgz - rm -f /tmp/sysupgrade.tgz - sync + tar xzf /sysupgrade.tgz } } -- cgit v1.2.3