Changeset 44941


Ignore:
Timestamp:
2015-03-22T16:11:20+01:00 (3 years ago)
Author:
nbd
Message:

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 <nbd@…>

Location:
trunk/package/base-files/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/init.d/done

    r40416 r44941  
    55boot() { 
    66        [ -d /tmp/root ] && mount_root done 
     7        rm -f /sysupgrade.tgz 
    78 
    89        # process user commands 
  • trunk/package/base-files/files/lib/preinit/80_mount_root

    r40416 r44941  
    99                echo "- config restore -" 
    1010                cd / 
    11                 mv sysupgrade.tgz /tmp 
    12                 tar xzf /tmp/sysupgrade.tgz 
    13                 rm -f /tmp/sysupgrade.tgz 
    14                 sync 
     11                tar xzf /sysupgrade.tgz 
    1512        } 
    1613} 
Note: See TracChangeset for help on using the changeset viewer.