Jump to content
Funtoo Linux
  • 0
Sign in to follow this  
artemeciagreen

Switching from Grub to Lilo

Question

I'm looking to install Lilo to by MBR, but I'm not sure how to proceed with telling Lilo which kernel/initrd to use. I'm using the latest debian-sources kernel, so I would expect to write "image=/boot/debian-sources-x86_64-4.7.8" and the initrd bit to lilo.conf for it to boot. However my kernel isn't in /boot, and I'm not sure what to symlink to /boot/bzImage. I'd rather not creating symlinks, if it can be avoided.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hey artemeciagreen,

 

Go to your kernel source directory and run "make && make modules_install install" and you will get the bzImage into /boot as vmlinuz-$VERSION, as well as config-$VERSION and System.map-$VERSION

NB: after the first make add -j and the number of CPU cores +1 found when you issue "nproc", such as "make -j9"

 

Now edit /etc/boot.conf to make sure you have at least one stanza where it looks for:

kernel vmlinuz[-v]

Here's one of mine:

boot {
        generate grub
        default "Funtoo Linux genkernel"
        timeout 3
}

"Funtoo Linux" {
        kernel vmlinuz[-v]
}

"Funtoo Linux genkernel" {
        kernel kernel[-v]
        initrd initramfs[-v]
        params += real_root=auto rootfstype=auto
}

Share this post


Link to post
Share on other sites
  • 0

Well, I think this will resolve the problem:

image=/patch/to/your/kernel
label=funtoo
read-only
root=/patch/to/your/root # example: /dev/sda3
initrd=/patch/to/your/initrd

I never try it with kernel out /boot, but should work.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×