On Sat, Jun 30, 2012 at 3:24 PM, Dale <rdalek1...@gmail.com> wrote:
> G.Wolfe Woodbury wrote:
>> On 06/30/2012 05:50 AM, Dale wrote:
>>>
>>> Thanks.  Now more questions.  I have read about this a few times but
>>> never quite figured it out.  I copy the bzImage and name it bzImage-*
>>> because that is what it is named when I type make etc to build a
>>> kernel.  Is there a difference between bzImage and vmlinux?  If it is,
>>> is it safe to rename it like that or will it break something?  If I need
>>> a vmlinux kernel instead of a bzImage, where is that thing?  I have
>>> looked and I don't have one on mine here.  Maybe I am missing
>>> something.  Google didn't find me anything either.
>>>
>> As someone else said, the spelling.  For grub-mkconfig to recognize it
>> as a kernel
>> the default names should begin with "vmlinuz-" or "kernel-"
>> For my gentoo disk, I rename the bzImage to gentoo.<XYZ> where the XYZ
>> is the kernel
>> version number.  I hand mung the grub.cfg (still legacy grub) in the
>> usual fashion.
>> I will probably migrate to grub2 pretty quick next time I play with
>> the gentoo install.
>>
>> Grub2 grub-mkconfig os-prober method recognizes grub legacy configs
>> and builds proper
>> menuentry stanzas as needed.
>>
>> I'm using multiple discs for booting my system.  The first drive (BIOS
>> default) is a Win7 native,
>> but I use the BIOS "boot menu" options to usually boot grub2 from
>> another drive.  This drive's grub.cfg
>> contains all of my linux installations, which are spread around 4
>> different drives.
>>
> Ahhhh, I can name it kernel.  That makes more sense to me.  Me votes for
> kernel-x.y.z.  Heck, this may work for me.
>
> I still don't like the deal of having to run something after changing
> the kernel tho.  It seems to lilo-ish to me.

You can also make/maintain the grub.cfg yourself with grub2, just like
in old grub. In fact this is what I do... I don't use the
grub2-mkconfig each time, I only used it once to generate a file and
then edited it by hand after that. It is simply a tool to generate a
config file, certainly not a requirement.

I have /boot/vmlinuz and /boot/vmlinuz.old as options in my grub menu
(entitled "linux" and "linux (previous kernel)". When I "make install"
my kernel sources it automatically moves vmlinuz to vmlinuz.old and
copies the newest kernel to vmlinuz. The explicitly versioned files
are still placed there, too. This way I never have to screw around
with updating my grub config and it always points to latest kernel and
my previous kernel. (also have options for memtest86+ and windows 7)

Reply via email to