https://bugzilla.novell.com/show_bug.cgi?id=786318 https://bugzilla.novell.com/show_bug.cgi?id=786318#c24 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |suse-beta@cboltz.de Resolution|FIXED | --- Comment #24 from Christian Boltz <suse-beta@cboltz.de> 2014-06-06 12:36:46 CEST --- (In reply to comment #19)
To clarify: Executing %posttrans correctly will _NOT_ cause one run of initrd creation.
The zypp fix only asserts that all %posttrans scripts are collected and executed correctly at the end of the transaction. But if N %posttrans scripts run initrd, it will be exectuted N times.
It's task of the %posttrans script (thus of the package maintainer) to prevent superfluous actions. (e.g. touching an indicator file in each %postinstall and let the %posttrans perform only if the file exists; removing it afterwards)
Are you serious about this? It sounds like "broken by design" to me because it basically means all packages containing a %posttrans script need to be modified. IMHO at least %posttrans scripts that have exactly the same content should be de-duplicated automatically by libzypp. I'd guess this would catch most of the %posttrans scripts we have. And: yes, I'm also aware that it won't catch all duplicates. But it would improve the situation a lot without causing lots of work to the package maintainers. BTW: Even if you don't plan to change this behaviour, it should at least be documented in the wiki. The only page containing posttrans is http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets (well, and "Cron rename") so this sounds like a good place to document it. Reopening to make sure it's documented (or ideally the behaviour gets improved). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.