grub on the slackware installer
Hi guys.
is there some one that already tried it?? what I want: edit the Slackware installer and use grub instead of lilo, I'm just curious about the possibilities. could someone lead me to at least a manual that is related to my needs? thanks |
A manual for what, exactly?
|
No real need for a manual.
Install Slack without Lilo. Boot from dvd. Install grub leg from 32bit /extra to a separate (very small) ext2 partition. Run: grubconfig Edit/Note: If you have trouble making the grub partition bootable, SuperGrubDisk will fix it from a gui most of the time. http://sourceforge.net/projects/supe...ce=recommended |
Thanks! do you think it will work? Sorry for my lack of explanation.
I want to make the Slackware installer use grub instead of lilo from the start up (before I install my distro), or if not possible, how I could make it configurable at the installation process, i don't know where to look for it... for example: when you boot backtrack 5, grub starts, and then you can choose whatever kernel you want. this is more my idea, i just don't know where to start working on it, and where i could get more information about this possibility, tried Google but they give a bunch of links showing how to configure and install grub after the system is installed. |
You don't need Grub just to start different kernels, Lilo is perfectly capable of that.
More info here: http://docs.slackware.com/slackbook:booting?s[]=lilo https://wiki.archlinux.org/index.php/Lilo |
Yes I know that, but could I also have a default installer that starts straight up with grub without breaking things?
Thanks by the way |
If you do that it won't stay a "default" installer ;)
FYI the installer is not a single file that you could edit. It is a cpio archive called initrd.img in the the /isolinux directory of a Slackware tree. If you want to look inside it you can unpack it for instance with following commands, typed as root: Code:
mkdir -p /tmp/initrd So actually there is nothing to change in the installer itself. You would just(!) modify grub's package so it spits an appropriate script in that directory at time of installation (you could look how lilo's package does that to get a clue there, see what's inside /source/a/lilo for that). Of course that will work only if grub is installed. Good luck. PS Kudos to Pat for this smart design of the installer, which makes such changes possible without having to modify it :hattip: PS2 of course what slackass proposed you is *a lot* simpler... |
Quote:
|
I'm glad you found this information useful.
Now, you'll have to decide what you will (propose the user to) do in case both lilo and grub packages are installed ;) |
Quote:
|
If you boot a Slackware setup DVD, what starts the Slackware installer (kernel and initrd) is ISOLINUX not LILO. You should be able to boot the same kernel and initrd files using GRUB.
The kernels are on the DVD in "kernels/huge.s/bzImage" and "kernels/hugesmp.s/bzImage". The initrd (RAM file-system) is in "isolinux/initrd.img". Look at the file "isolinux/isolinux.cfg" for the exact boot menu entries. You will have to translate those menu entries to the correct information for the GRUB menu. If you are actually going to install Slackware, you also need the rest of the Slackware files from the DVD. Changing what boot loader is installed during setup is more complicated. To do that you have to change the file "/usr/lib/setup/setup" in the "initrd.img". It will be necessary to extract the files from "initrd.img" and then re-create "initrd.img". You have to add the boot loader's files to the Slackware installation files if they aren't already there. GRUB Legacy is already a Slackware package included with the installation files. Edit: It looks like you don't have to change the "initrd.img". Thanks for the great explanation, Didier! |
Quote:
Many thanks Didier and Erik_FL for the very explanatory reply. |
Quote:
|
When you install skip lilo and make a boot disk. Use the boot disk to boot your system and install grub.
http://slackbuilds.org/repository/13.1/system/grub2/ Haven't tried it yet. but I'm assuming it works. In my case I already had Grub on the MBR from another distro on another partition. In that case all you have to do is load up the other partition, add a slack entry to /etc/grub.d and update grub. I'd personally prefer lilo over grub just because the syntax is much more simple. Eventually I'll switch back. |
Quote:
|
All times are GMT -5. The time now is 02:21 AM. |