Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bmarkus on November 21, 2009, 07:02:05 AM

Title: Startup script vs. restore
Post by: bmarkus on November 21, 2009, 07:02:05 AM
Startup scripts executed before backuped data restored. This means, that for example WICD auto connection script do not see saved settings and it has to be added to bootlocal.sh Changing the order to

1) load extensions
2) restore backup
3) run startup scripts

would solve the problem and would eliminate extra configuration step. There may be an impact on certain extensions theoretically, but I do not have a real case. Also making restored data available earlier would narrow the gap between different installation types.
Title: Re: Startup script vs. restore
Post by: mikshaw on November 21, 2009, 09:32:00 AM
I think it was done this way to prevent startup scripts from interfering with your personal dynamic files.  As I see it,  the backup is there to override the potential effects of all static content (base system and extensions).  If you have something static in your backup that needs to be in place before the scripts run, you can make an extension of it.