LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2015, 11:46 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Exclamation [Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch.


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.
Attached Files
File Type: txt grub.2015-slackware_rollup.patch.txt (5.1 KB, 55 views)
File Type: txt grub.SlackBuild.txt (5.5 KB, 56 views)

Last edited by ReaperX7; 01-28-2015 at 12:40 AM. Reason: Updated patch
 
Old 01-28-2015, 08:21 AM   #2
Richard Twat
LQ Newbie
 
Registered: Jul 2009
Location: The Netherlands
Distribution: Slackware
Posts: 19

Rep: Reputation: 19
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
 
Old 01-28-2015, 09:22 AM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You can use /etc/defaults/grub for selecting the defaults of the system.
 
Old 01-28-2015, 09:30 AM   #4
Richard Twat
LQ Newbie
 
Registered: Jul 2009
Location: The Netherlands
Distribution: Slackware
Posts: 19

Rep: Reputation: 19
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to download patch packages to a local drive first, then patch the system thesunlover Linux - Server 4 11-07-2012 06:18 AM
LXer: A Patch-Set Making Btrfs ~20% Faster LXer Syndicated Linux News 0 09-30-2012 05:51 AM
LXer: A Patch That Can Make Btrfs 5~10% Faster LXer Syndicated Linux News 0 02-18-2012 04:30 PM
How to patch my redhat Enterprise Linux 5.1 to the latest patch level? shaybery Red Hat 4 10-05-2008 02:04 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration