Package Kit: Proper Installation for First Boot Packages
Do the final installation operations for all the packages in the /system/packages directory when the OS is booted for the first time. This will run their post-install scripts, create users, groups and generate settings files (marked with a package version attribute). Previously we just ran all the shell scripts found in the /system/boot/post-install directory (don't do that as much now). Fixes bug #14382 This patch has simpler code flow in CommitTransactionHandler::_ApplyChanges Tested on 32 and 64 bit systems. Once it's official, need to remove the open_ssh redundant post-install script that creates users etc. from HaikuPorts. Now we can notice bugs like package version attributes on settings files aren't fully working. :-) Didn't remove special case for add_catalog_entry_attributes.sh since it still does stuff that the build system doesn't do. Might be able to add that script as part of the Haiku.hpkg. See change 3751 for removing it, https://review.haiku-os.org/c/haiku/+/3751 Change-Id: I3807b78042fdb70e5a79eca2e2a45816ece0236f Reviewed-on: https://review.haiku-os.org/c/haiku/+/2342 Reviewed-by: Alexander G. M. Smith <[email protected]> Reviewed-by: Niels Sascha Reedijk <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
e459857d1c
commit
3376ed1a72
@@ -179,7 +179,10 @@ The supported attributes are:
|
||||
- ``post-install-scripts``: A list of paths of files included in the package,
|
||||
which shall be executed on package activation. Each path must start with
|
||||
"boot/post-install/". All the files in that directory are also run on first
|
||||
boot after installing or copying the OS to a new disk.
|
||||
boot after installing or copying the OS to a new disk. As an odd bonus,
|
||||
they're also run when you boot the installer disc, and the installer copies
|
||||
some of the resulting settings data to the new install too. So try to
|
||||
handle being run twice.
|
||||
- ``pre-uninstall-scripts``: A list of paths of files included in the package,
|
||||
which shall be executed on package deactivation. For consistency, each path
|
||||
should start with "boot/pre-uninstall/".
|
||||
|
||||
Reference in New Issue
Block a user