[haiku-development] Re: System upgrade from medium - Questions

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 22 Sep 2020 22:12:24 +0200

On Tue, Sep 22, 2020 at 05:37:57PM +0100, Niels Sascha Reedijk wrote:

I have identified two gaps in this process. The first is that there will be
issues about new required system packages, that are not yet on the existing
system. Let's say that we decide to break out StyledEdit in a separate
package, but we still want it to be installed by default. I assume the
system upgrade route will not automatically install that package. I assume
this is also a gap in the current online system update. How would we solve
this? Would we introduce the possibility of a FullSync in the solver with a
list of required packages? Or do we solve this at the package level?

Have the new haiku package depend on it.

Or maybe, list all packages in /system/packages in the install media,
and consider they should all be installed by default. The downside is if
the user has slimmed down their local install, that will not be
preserved.

The second gap is that there are steps in the update/upgrade process that
have to do with updating a bootloader. So far it seem we have not made any
(incompatible) changes in our bootloader, but it seems to me like this is
potentially an issue with the online update.

We should fix that, but it is a separate issue. I guess we should finish
the work on post-install scripts, then we can have the haiku_loader
package run one such script when needed, to perform the necessary steps.

Ideally, I feel like for consistency's sake, I would like to get to a stage
where the system upgrade can be actually done from the live medium. I don't
know if the package kit and/or package daemon currently would support the
logic of updating an existing system. That would be ideal.Any pointers here?

I think you will not be able to run postinstall scripts and the like in
that situation, or only after a reboot. And you couldn't run
pre-uninstall scripts properly, either.

-- 
Adrien.

Other related posts: