I’m running a very small TinyCore 17 system that serves only internal DNS and DHCP. I maintain several static LAN hosts in , and I also use a custom . Both files get overwritten on each reboot.
I’ve tracked to ’s , so I can patch or wrap that if needed. But before I go down the road of patching individual scripts, I wanted to ask:
Is there a clean, standard, supported way to prevent post‑restore scripts from overwriting user‑supplied config files?
From searching the forum, most solutions seem to involve restoring files again at the end of bootlocal.sh. That works, but it feels fragile because some late‑boot scripts and daemons run in parallel with bootlocal.sh, so you can end up in a timing race. What works today might not work in a future release or with different extensions.
So my question is really about the bigger picture:
Is there an existing mechanism to mark certain files as “user‑owned” so that late‑boot scripts skip rewriting them?
If not, would it make sense for TinyCore to have a unified way to do this?
(For example, a group ownership convention or a marker file that helper scripts check before overwriting.)
I’m not looking for a one‑off hack for these two files — I’m wondering whether there’s a clean, general approach that I’ve missed, or whether this is something worth discussing as a feature.
Any thoughts or guidance appreciated.