Mailinglist Archive: opensuse (3261 mails)

< Previous Next >
Re: [SLE] Kernel too big error
  • From: Philipp Thomas <pthomas@xxxxxxx>
  • Date: Sun, 1 Apr 2001 21:23:45 +0200
  • Message-id: <20010401212345.F21662@xxxxxxxxxxxxxxxx>
* filip (vhf@xxxxxxxxx) [20010401 21:12]:

> Very interesting but is your scheme also valid with only scsi card / hard
> disk ?
> What about mk_initrd then ?

mk_initrd of cause still has to be called. And if you need an initrd, you
have to tell mk_initrd which kernel to use and what the name of the initrd
is going to be. So let's say for a 2.4.3 kernel, I'd call it as
' mk_initrd -k vmlinuz-2.4.3 -i initrd-2.4.3'. And of cause you'd have to
make a matching entry in /etc/lilo.conf.

At least calling mk_initrd could be automated by changing the rule in
arch/i386/boot/Makefile:

zlilo: $(CONFIGURE) $(BOOTIMAGE)
if [ -f $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE) ]; then \
mv $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE) $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE).old; \
fi
if [ -f $(INSTALL_PATH)/System.map-$(KERNELRELEASE) ]; then \
mv $(INSTALL_PATH)/System.map-$(KERNELRELEASE) $(INSTALL_PATH)/System-$(KERNELRELEASE).old; \
fi
cat $(BOOTIMAGE) > $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE)
cp $(TOPDIR)/System.map-$(KERNELRELEASE) $(INSTALL_PATH)/
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
if [ -x /sbin/mk_initrd ]; then \
/sbin/mk_initrd -k vmlinuz-$(KERNELRELEASE) -i initrd-$(KERNELRELEASE); \
fi

Now a new initrd is created automatically when you do 'make zlilo' or
'make bzlilo'.

Philipp

--
Penguins shall save the dinosaurs
-- Handelsblatt about Linux on S/390

< Previous Next >
This Thread
Follow Ups
References