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

Re: Re: Custom kernel - init freezes [partially resolved]



I found a solution to my problem: /boot/grub/menu.lst.

There is a section called ## Start Default Options ## 
where we can define additionnal variables about
different kernels options.

I put these lines:

# kopt=root=/dev/sda1 ro quiet
# kopt_2_6_22=root=/dev/hda1 ro quiet

(kernel 2.6.22-3-686 was the only one in menu.lst)

This way, when update-grub is called, /boot/grub/menu.lst is 
updated according to the kernel. Thus, the default kernel option 
is "root=/dev/sda1 ro quiet" (for kernel 2.6.24 and subsequent) while 
the kernel option for kernel 2.6.22 is "root=/dev/hda1 ro quiet".

Now, I can experiment different kernel compilations (implying update-grub)
and always have good entries (sda1/hda1) in menu.lst.

Hubert


Reply to: