Replies: 1 comment 1 reply
-
The current behavior is a mistake really, and one that we'll be reverting in 6.0: #2581 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
When upgrading kernel, we will make initrd in
posttrans
script. But the process of making initrd may fail in some unusual situations, and we only get a warning message, the rpm command returns 0.If the rpm command is running in a script, we will treat it as a successful kernel update by mistake, and then reboot. But becasuse the initrd wasn't successfully built, the reboot will enter emergency mode.
Describe the solution you'd like
Support some options to make
posttrans
script (can also be used inpost
,postun
...) failure as RPMSCRIPT_FLAG_CRITICAL.Describe alternatives you've considered
Add a new
posttrans_critical
, it supplies the same function asposttrans
except the error of script is treated as critical.Beta Was this translation helpful? Give feedback.
All reactions