From: "Adrian Bunk" <bunk@stusta.de>
To: Stefano Babic <sbabic@denx.de>
Cc: csimmonds <chris@2net.co.uk>, yocto@lists.yoctoproject.org
Subject: Re: [yocto] Distro upgrade strategies
Date: Sun, 21 Jun 2020 16:46:37 +0300 [thread overview]
Message-ID: <20200621134637.GD6921@localhost> (raw)
In-Reply-To: <28338870-464a-0f9b-71f2-5802cb4a7330@denx.de>
On Sun, Jun 21, 2020 at 02:09:44PM +0200, Stefano Babic wrote:
> Hi Adrian,
Hi Stefano,
>...
> If it can work in many case, it won't in many other cases. Hash issues with
> packages ? System does not boot and a grub-rescue shell is started ? Not a
> very big problem (in many cases) on server / pc. We check what happens, we
> rework maybe the grub menu, or if nothing works we start a live distro. But
> if this is ok on server / pc for a linux developer, how can it work on
> unattended (embedded) systems, without shell access (due to security
> reasons), and with end users ? It is not enough if it works in most cases,
> it must always work.
>...
one major difference between Yocto and most Linux distributions is that
most Linux distributions enable automatic security updates by default.
A normal Ubuntu system gets security updates installed several times
every week.
I know many nontechnical people working on an Ubuntu laptop or desktop,
and I have seen many embedded systems running Ubuntu.
>...
> I think you mean that dpkg has improved to make the update of a single
> package more atomic, but what about if you upgrade a lot of packages at once
> and you have a power-cut in between ?
>...
What I mean is that what Steve claimed to be "usually" is something
I do not remember seeing in over 20 years with Debian and Ubuntu.
Not just "improved", this is something dpkg gets right since the 1990s.
As long as any highlevel tool calls "dpkg --configure -a" on unclean
dpkg state, chances are the upgrade can just continue after the power-cut.
With "atomic where they have to be" I meant the normal fsync+rename
that ensures that you can never end up with a half-written file
after a power-cut.
> Best regards,
> Stefano
cu
Adrian
next prev parent reply other threads:[~2020-06-21 13:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 12:16 Distro upgrade strategies hboddington
2020-06-19 14:05 ` [yocto] " Alexander Kanavin
2020-06-19 14:35 ` csimmonds
2020-06-19 14:38 ` Alexander Kanavin
2020-06-21 7:11 ` Adrian Bunk
2020-06-21 12:09 ` Stefano Babic
2020-06-21 13:46 ` Adrian Bunk [this message]
2020-06-21 14:04 ` Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200621134637.GD6921@localhost \
--to=bunk@stusta.de \
--cc=chris@2net.co.uk \
--cc=sbabic@denx.de \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.