[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make-kpkg and initrd



Just a friendly Jedi Knight <jedi@plukwa.net> wrote:
> On Tue, Oct 23, 2001 at 10:43:38AM +0200, Eduard Bloch wrote:
>> WTF? Would you please look how kernel-package works before answering?
>> The postinst of a kernel-image creates an initrd, symlinks /boot/initrd
>> to it, and OF COURSE sets /vmlinuz symlink to the SAME kernel version.

> This somewhat screwed =o( Using LILO one can boot different kernel and if
> that other kernel is also using initrd then /boot/initrd points to wrong
> file (it points to initrd that corresponds only to default kernel image). I
> guess this might lead to various problem with booting other kernel than the
> default one.

Fix: simple, don't use initrd as global option.

Something like this should work:
root = /dev/hda3
boot=/dev/hda
readonly
# Linux bootable partition config begins
image = /vmlinuz
label = default
initrd=/boot/initrd
# Linux bootable partition config ends
#
# Linux bootable partition config begins
image = /vmlinuz.old
label = old
initrd=/boot/initrd.old
# Linux bootable partition config ends

Afaics from /usr/share/kernel-package/image.postinst installing a
kernel-image can keep the initrd-Symlinks in sync with the
vmlinuz-symlinks.
           cu andreas
-- 
Hey, da ist ein Ballonautomat auf der Toilette!
Echelon: sex violence tower XXX Boom human rights Islam Kate Winslet
Keysigning party in Vienna http://keysign.graffl.net/
vim:ls=2:stl=***\ Sing\ a\ song.\ ***



Reply to: