Re: [Security-Discuss] [ MDKSA-2006:086 ] - Don't update the kernel on Soft-RAID-Sytems

Luca Berra <[email protected]> Sat, 20 May 2006 11:08:45 +0200
Newsgroups gmane.linux.mandrake.security.general
Message-ID <[email protected]>
On Fri, May 19, 2006 at 01:18:18PM -0300, Luiz Fernando N. Capitulino wrote:
>On Fri, 19 May 2006 13:00:28 +0200 (CEST)
>Juergen Holm <holm-cReBFXHS9TI9HBOmPq+WUkOITlckZahNbaYZWgcc/[email protected]> wrote:
>
>| If you have system with software raid 1 only , don't upgrade to the
>| new kernel.
>| The system will not reboot because of problem with initrd (I think)

could you please be more specific in describing your problem, so that we
might actually understand it.

>| Not the right place, I know, but:
>| I don't unstand the install procedure. In the old times a postinstall
>| scriptlet runs /sbin/installkernel -C, but there ist no postinstall
>| anymore in 2.6.12-21mdk
It as been changed to a posttrans script (and not noted in changelog, as
usual). post-transaction scripts are executed after a bunch of packages are
installed, versus postinstall scripts which are executed after each
single package is installed.
rpm --scripts does not display pre/posttrans, patch attached.

# rpm -q --scripts kernel-2.6.12.21mdk
preuninstall scriptlet (using /bin/sh):
/sbin/installkernel -R 2.6.12-21mdk
exit 0
postuninstall scriptlet (using /bin/sh):
/sbin/kernel_remove_initrd 2.6.12-21mdk
posttransaction scriptlet (using /bin/sh):
/sbin/installkernel  2.6.12-21mdk

so we have the installkernel line

>| Futhermore in 2.6.12-18 the initrd is of type
>| 
>|  	    linux Compressed ROM File System dat
>| 
>| 2.6.12-21 is
>|  	   gzip compressed data, which contains:
>|  	   ASCII cpio archive
in the changelog of mkinitrd package it is clearly stated:
* mer apr 05 2006 Gwenole Beauchesne <gbeauchesne-4qZELD6FgxhWk0Htik3J/[email protected]> 4.2.17-14mdk
- default to initramfs

the new initrd is now an initramfs.

> Luca, could you help here please?

not much, since i still don't know which problem the o.p. is facing.

L.

Please Cc me to replies, i am not subscribed to this ml.

L.

-- 
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________
rpmpopt-trans.diff (text/plain, 746 B)
--- /usr/lib/rpm/rpmpopt-4.4.2~	2006-05-20 11:01:53.000000000 +0200
+++ /usr/lib/rpm/rpmpopt-4.4.2	2006-05-20 11:01:57.000000000 +0200
@@ -32,6 +32,14 @@
 %|POSTUNPROG?{ (using %{POSTUNPROG})}|:\n%{POSTUN}\n}:\
 {%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\
 \
+%|PRETRANS?{pretransaction scriptlet\
+%|PRETRANSPROG?{ (using %{PRETRANSPROG})}|:\n%{PRETRANS}\n}:\
+{%|PRETRANSPROG?{pretransaction program: %{PRETRANSPROG}\n}|}|\
+\
+%|POSTTRANS?{posttransaction scriptlet\
+%|POSTTRANSPROG?{ (using %{POSTTRANSPROG})}|:\n%{POSTTRANS}\n}:\
+{%|POSTTRANSPROG?{posttransaction program: %{POSTTRANSPROG}\n}|}|\
+\
 %|VERIFYSCRIPT?{verify scriptlet:\n%{VERIFYSCRIPT}\n}|\
 ' \
 	--POPTdesc=$"list install/erase scriptlets from package(s)"