LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. (https://www.linuxquestions.org/questions/slackware-14/%5Bpatch-and-slackbuild%5D-grub-2-02%7Ebeta2-slackbuild-and-patch-4175532269/)

ReaperX7 01-27-2015 11:46 PM

[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch.
 
2 Attachment(s)
I did some work tonight on getting a suitable patch ready for Grub2-2.02~beta2 that could be useful in Slackware if the new version of Grub is ever considered.

This SlackBuild and Patch combines several existing Slackware patches reworked and ported into a rollup style patch as well as two patches for grub-mkconfig to detect various filesystems and drives I reworked from several patches lingering around Ubuntu's forums.

This patch set includes:

- partition and drive detection fix for grub-mkconfig.in and grub-mkconfig_lib.in using a legacy style method of detection. (recommended for anyone using btrfs as root, and maybe ZFSOnLinux as root *unsupported and does require an additional patch for libzfs not included*)
- re-ported dejavusansmono patch to work against grub-install.c file instead of grub-install.in
- re-worked in initrd naming patch (worked with only a minimal path edit)

Two older patches were not needed as Grub2-2.02~beta2 already included them in the updated code during a check to work the patches back in.

The edited SlackBuild of Patrick's contains the new command to patch Grub-2.02~beta2 properly.

Enjoy.

Richard Twat 01-28-2015 08:21 AM

Nice work !
One thing I don't like about grub-mkconfig is that it sort the huge kernel before the generic kernel. I like to keep the huge kernel installed for emergencies.
Perhaps that's something that can be patched or perhaps I'm doing something wrong ofcourse ;)
Luckily configuring grub.cfg manually is actually not much more difficult as grub1 of lilo ;)

ReaperX7 01-28-2015 09:22 AM

You can use /etc/defaults/grub for selecting the defaults of the system.

Richard Twat 01-28-2015 09:30 AM

Yes, but that doesn't change the sort order of the menu entries created by grub-mkconfig. That's hardcoded.
If the huge kernel is installed it will put that as default and the rest in the submenu.


All times are GMT -5. The time now is 02:40 AM.