_moth_ has quit [Remote host closed the connection]
_moth_ has joined #crux
<Guest35>
Hello, crux users. i want to create several alternative kernel versions. I am planning to do: 0) back up my /usr/src/linux-x.y.z/.config file 1) go into /usr/src/linux-x.y.z folder and run make clean && make mrproper 2) specify local string in my kernel menuconfig interface and make modifications 3) compile kernel and modules 4) copy bzImage to
<Guest35>
/boot/vmlinuz-foo and copy System.map to /boot as System.map-foo 5) inform my bootloader of the new kernel version. Is that the right way to do it?
Guest94 has quit [Quit: Client closed]
Guest94 has joined #crux
<farkuhar>
Guest35: steps 0-4 look good, but make sure you run `make modules_install` too. As for step 5, that's highly dependent on your bootloader. Do you use grub?
<Guest94>
farkuhar, i currently use grub but i used lilo as well.
<farkuhar>
the command grub-mkconfig should detect any kernels you save in /boot with the filenames in your proposed scheme. I haven't used lilo recently enough to comment on that setup.
Guest94 has quit [Quit: Client closed]
<farkuhar>
If your BIOS is modern enough and you enable EFI_STUB in your kernels and you save them in a FAT32 partition, you can even let the BIOS act as your bootloader. Run efibootmgr from any booted Linux installation to modify the boot order and select which kernel gets booted next.