Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295073 Details for
Bug 433121
kernel posttrans and preun hooks for other packages
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
kernel-posttrans-preun.patch
kernel-posttrans-preun.patch (text/plain), 1.76 KB, created by
Matt Domsch
on 2008-02-16 15:35:07 UTC
(
hide
)
Description:
kernel-posttrans-preun.patch
Filename:
MIME Type:
Creator:
Matt Domsch
Created:
2008-02-16 15:35:07 UTC
Size:
1.76 KB
patch
obsolete
>--- kernel.spec.orig 2008-02-15 21:06:33.000000000 -0600 >+++ kernel.spec 2008-02-16 00:07:36.000000000 -0600 >@@ -1610,11 +1610,35 @@ > %{nil} > > # >+# This macro defines a %%posttrans script for a kernel package. >+# %%kernel_variant_posttrans [-v <subpackage>] [-s <s> -r <r>] <mkinitrd-args> >+# More text can follow to go at the end of this variant's %%posttrans. >+# >+%define kernel_variant_posttrans(v:) \ >+%{expand:%%posttrans %{?-v*}}\ >+for d in /etc/kernel/postinst.d /etc/kernel/postinst.d/%{KVERREL}%{?-v*} ; do \ >+ if [ -d "${d}" ]; then \ >+ for f in $(ls ${d}/); do \ >+ [ -x "${d}/${f}" ] && "${d}/${f}" %{KVERREL}%{?-v*} /boot/vmlinuz-%{KVERREL}%{?-v*} \ >+ done \ >+ fi \ >+done \ >+exit 0\ >+%{nil} >+ >+# > # This macro defines a %%preun script for a kernel package. > # %%kernel_variant_preun <subpackage> > # > %define kernel_variant_preun() \ > %{expand:%%preun %{?1}}\ >+for d in /etc/kernel/prerm.d /etc/kernel/prerm.d/%{KVERREL}%{?1} ; do \ >+ if [ -d "${d}" ]; then \ >+ for f in $(ls ${d}/); do \ >+ [ -x "${d}/${f}" ] && "${d}/${f}" %{KVERREL}%{?1} /boot/vmlinuz-%{KVERREL}%{?1} \ >+ done \ >+ fi \ >+done \ > /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{KVERREL}%{?1} || exit $?\ > #if [ -x /sbin/weak-modules ]\ > #then\ >@@ -1624,12 +1648,15 @@ > > %kernel_variant_preun > %kernel_variant_post -s kernel-smp -r kernel >+%kernel_variant_posttrans > > %kernel_variant_preun smp > %kernel_variant_post -v smp >+%kernel_variant_posttrans -v smp > > %kernel_variant_preun PAE > %kernel_variant_post -v PAE -s kernel-smp -r kernel-PAE >+%kernel_variant_posttrans -v PAE > > %kernel_variant_preun debug > %kernel_variant_post -v debug >@@ -1644,6 +1671,8 @@ > /sbin/ldconfig -X || exit $? > fi > >+%kernel_variant_posttrans -v xen >+ > ### > ### file lists > ###
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 433121
: 295073