[haiku-bugs] Re: [Haiku] #14382: Package kit boot activation doesn't create users

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 24 Apr 2020 06:25:34 -0000

#14382: Package kit boot activation doesn't create users
-------------------------------+----------------------------
  Reporter:  kallisti5         |      Owner:  agmsmith
      Type:  bug               |     Status:  assigned
  Priority:  high              |  Milestone:  R1/beta2
 Component:  Kits/Package Kit  |    Version:  R1/Development
Resolution:                    |   Keywords:
Blocked By:                    |   Blocking:
  Platform:  All               |
-------------------------------+----------------------------
Comment (by pulkomandy):

 Replying to [comment:16 AGMS]:

Problem 1: Incorrect location of activated-packages file.

It somehow finds the file and uses it.  The confusion may be about the
 error message which is about where it finds the packges, not the control
 file.  No changes needed for this one.

 Yes, this has been solved already.


Problem 2: Packages are marked as activated ​if the activated-packages
 file is not found.

Actually makes sense.

 Yes. The idea of my patch was to differenciate between a completely
 missing file, and an empty file. Only in the latter case we would have
 done some activation. But that doesn't work, as you explain below, we need
 the packages "active" to boot the system at all...

Problem 3: Nothing performs activation on boot.

We could fake it by uninstalling everything and reinstalling.  But
 besides being dicy for running programs, it may need network access.

 If fact you don't need to uninstall anything. Because of the empty
 activated-package files, the package system already knows that the
 packages are not activated. So, you can just trigger the scripts and user
 creation for all these packages which are "semi-activated". I think this
 may even happen automatically when you install or remove any package
 already?

 In any case, I don't see a need to expose this in pkgman. Just have an API
 in the package kit and have the launch daemon call it on first boot.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14382#comment:18>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: