On Tue, Nov 7, 2017 at 12:32 PM, Luigi Semenzato <
seme...@chromium.org> wrote:
> On Tue, Nov 7, 2017 at 12:13 PM, Mike Frysinger <
vap...@chromium.org> wrote:
>> there's a few ways to look at this. when it comes to /var state, there's a
>> reasonable argument to be made that daemons should make sure their data is
>> in a reasonable state at every boot. you could be migrating from older
>> systems, or things could have been corrupted (not necessarily at the fs
>> level, but by some other process gone amok), or some malicious code ran
>> which wedged you. by having the init script do all the sanity checking
>> every time it runs, it means rebooting is an inexpensive method to get back
>> to a working state.
>> -mike
>
> Yes that makes sense. I am not sure how well we follow this principle.
>
> But migration can be quite a bit more involved than emergency
> recovery. Often the init script doesn't have all the needed logic.
Do you really need migration recovery? Maybe just treat it as
emergency if the data is not user data?
>
>>
>> On Tue, Nov 7, 2017 at 3:09 PM, Luigi Semenzato <
seme...@chromium.org>
>> wrote:
>>>
>>> When a chromebook hasn't booted for a long time, and it's missing a
>>> few OS updates, our update engine can feed to it an update which
>>> merges multiple releases. I don't know if we guarantee a maximum
>>> number of merges, or if we can specify releases which are guaranteed
>>> to boot at least once. Do we?
>>>
>>> This would be useful because whenever we need to migrate state (see
>>> for instance
crbug.com/782284) we have to leave the migration code in
>>> in perpetuity, or at least for a suitably ridiculous length of time.
>>>
>>> I am trying to think if there are other ways of getting this result,
>>> but I don't think so. The migration code could be in any of our
>>> binaries.
>>
>>
>> --
>> --
>> Chromium OS Developers mailing list:
chromiu...@chromium.org
>> View archives, change email options, or unsubscribe:
>>
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>>
>
> --
> --
> Chromium OS Developers mailing list:
chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
>
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
chromium-os-d...@chromium.org.
>