[Rpm-maint] [rpm-software-management/rpm] Support RPMSCRIPT_FLAG_CRITICAL for posttrans (Discussion #3044)
licunlong
notifications at github.com
Wed Apr 17 09:17:30 UTC 2024
**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 for `post`, `postun`...) used for failure as RPMSCRIPT_FLAG_CRITICAL.
**Describe alternatives you've considered**
Add a new `posttrans_critical`, it supplies the same function as `posttrans` except the error of script is treated as critical.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3044
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3044 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240417/54d09add/attachment.html>
More information about the Rpm-maint
mailing list