Jump to content

Photo

Switching from Grub to Lilo

Bootloader init boot startup

Best Answer mingdao , 25 November 2016 - 05:39 PM

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
}
Go to the full post »


3 replies to this topic

#1
artemeciagreen

artemeciagreen

    Member

  • Members
  • PipPip
  • 11 posts

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.



#2
tolvo

tolvo

    Newbie

  • Members
  • Pip
  • 5 posts

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.



#3
artemeciagreen

artemeciagreen

    Member

  • Members
  • PipPip
  • 11 posts

Thanks tolvo, but I was hoping I could get some help with moving the bzImage into /boot. The funtoo wiki's page on lilo is rather vague regarding copying the kernel to /boot



#4
mingdao

mingdao

    Newbie

  • Members
  • Pip
  • 4 posts
✓  Best Answer

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
}

  • artemeciagreen likes this



Reply to this topic



  



Also tagged with one or more of these keywords: Bootloader, init, boot, startup

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users