-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Initial implementation of %posttrans using bwrap+rofiles-fuse
In order to make many things work, we need to run scripts. Short version: For now, we: - Run `%posttrans` - Treat most `%post` as the same as `%posttrans` - Ignore `%preun` and such since we never uninstall Most importantly though, we start to build up an "override" list for script handling. Currently it's just a blacklist of scripts we don't need. Significant work here would be needed to run Lua scripts, so far I've been able to just skip them.
- Loading branch information
Showing
7 changed files
with
537 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%{ | ||
#include "config.h" | ||
#include "rpmostree-scripts.h" | ||
%} | ||
struct RpmOstreePackageScriptHandler; | ||
%language=ANSI-C | ||
%define slot-name package_script | ||
%define hash-function-name rpmostree_script_gperf_hash | ||
%define lookup-function-name rpmostree_script_gperf_lookup | ||
%readonly-tables | ||
%omit-struct-type | ||
%struct-type | ||
%includes | ||
%% | ||
glibc.prein, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
coreutils.prein, RPMOSTREE_SCRIPT_ACTION_IGNORE /* workaround for old bug? */ | ||
ca-certificates.prein, RPMOSTREE_SCRIPT_ACTION_IGNORE /* Looks like legacy... */ | ||
filesystem.pretrans, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
libgcc.post, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
setup.post, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
fedora-release.post, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
fedora-release.posttrans, RPMOSTREE_SCRIPT_ACTION_IGNORE | ||
bash.post, RPMOSTREE_SCRIPT_ACTION_TODO_SHELL_POSTTRANS | ||
glibc-common.post, RPMOSTREE_SCRIPT_ACTION_TODO_SHELL_POSTTRANS |
Oops, something went wrong.