SPECS: mkinitrd.spec - add -pl and EA from dead revision
Elan Ruusamäe
glen at delfi.ee
Thu Jan 6 00:29:01 CET 2005
On Wednesday 05 January 2005 17:43, Elan Ruusamäe wrote:
> On Wednesday 05 January 2005 17:16, Jakub Bogusz wrote:
> > On Wed, Jan 05, 2005 at 02:50:56PM +0000, glen wrote:
> > > +# - yes, there's geninitrd in PLD, but there's no replacement for
> > > grubby that +# this package contains.
> >
> > What is grubby?
> http://www.die.net/doc/linux/man/man8/grubby.8.html
i created grubby package now. it's mkinitrd replaced with geninitrd calls.
to get full power out of it, add to kernel.spec something like this:
%post
if [ -x /sbin/new-kernel-pkg ]; then
/sbin/new-kernel-pkg --mkinitrd --depmod --install %{version}-%{release}
elif [ -x /sbin/rc-boot ]; then
/sbin/rc-boot 1>&2 || :
fi
%preun
/sbin/modprobe loop 2> /dev/null > /dev/null || :
if [ -x /sbin/new-kernel-pkg ] ; then
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove %{version}-%{release}
fi
it will add the new kernel to grub conf, and optionally you change grub to make it default too
# dif /tmp/grub.conf /boot/grub/grub.conf
--- /tmp/grub.conf 2005-01-06 00:32:38.412792000 +0200
+++ /boot/grub/grub.conf 2005-01-06 01:24:45.079401517 +0200
@@ -11,10 +11,14 @@
timeout 15
# By default, boot the first entry.
-default 2
+default 3
# Fallback to the second entry.
-fallback 1
+fallback 2
+
+title 1.99 PLD Linux (Ac) (2.6.10-1)
+ kernel /vmlinuz-2.6.10-1 root=/dev/hda7 panic=10 devfs=nomount
+ initrd /initrd-2.6.10-1.img
title PLD 2.6.8-4.11
kernel /vmlinuz-2.6.8-4.11 root=/dev/hda7 panic=10 devfs=nomount
(END)
--
glen
More information about the pld-devel-en
mailing list