[haiku-bugs] Re: [Haiku] #18186: manual retrigger of post-install scripts

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 28 Dec 2022 22:50:30 -0000

#18186: manual retrigger of post-install scripts
-------------------------------+-------------------------
  Reporter:  kallisti5         |      Owner:  nobody
      Type:  bug               |     Status:  new
  Priority:  normal            |  Milestone:  Unscheduled
 Component:  Kits/Package Kit  |    Version:  R1/beta4
Resolution:                    |   Keywords:
Blocked By:                    |   Blocking:
  Platform:  All               |
-------------------------------+-------------------------
Description changed by kallisti5:

Old description:

There doesn't appear to be a way to "manually reset" post-install
scripts.  While I can "touch ~/config/settings/first_login" to re-run the
first_login scripts, there is no clear way to reset post-install scripts
(like sshd generating host keys).

The usecase is sysprepping haiku installs (aka, we want the system to
regenerate host keys on first boot... so the ssh host keys are manually
erased before shutting down the host and making an image of it.

There should be a way to "manually re-trigger all post-install scripts on
boot", much like the existence of "first_login in
~/config/settings/first_login

New description:

 There doesn't appear to be a way to "manually reset" post-install scripts.
 While I can "touch ~/config/settings/first_login" to re-run the
 first_login scripts, there is no clear way to reset and re-run post-
 install scripts at boot (like sshd generating host keys).  These are done
 via the package kit.

 The usecase is sysprepping haiku installs (aka, we want the system to
 regenerate host keys on first boot... so the ssh host keys are manually
 erased before shutting down the host and making an image of it.

 There should be a way to "manually re-trigger all post-install scripts on
 boot", much like the existence of "first_login in
 ~/config/settings/first_login

--
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/18186#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: