Mail archive
alpine-devel

Re: [alpine-devel] apk robustness

From: Timo Teras <timo.teras_at_iki.fi>
Date: Sun, 22 Dec 2013 20:46:13 +0200

On Sun, 22 Dec 2013 17:06:18 +0100
"Leslie P. Polzer | PORT ZERO" <polzer_at_port-zero.com> wrote:

> how robust is apk? Consider a system upgrade with a couple
> of packages that is interrupted by a power outage. Will it
> leave the system in a sane state, guaranteed?
>
> I think the answer is no, but I'll be happy to know more about
> this.

It is not fully guaranteed. Considering apk was originally built for
the run-from-ram situation, this is not a major issue. But now that we
are having more and more run-from-harddisk setups, it might need to be
revisited.

Basically the apk database is updated only once at the end - so the
situation will be that apk thinks nothing was done, even if some
packages got updated. Next apk update will start thinking that some
packages were not updated.

So no, the apk db is not corrupted. But yes, it will not reflect the
system status exactly.

- Timo


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Dec 22 2013 - 20:46:13 UTC