LinuxQuestions.org
Help answer threads with 0 replies.
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 06-09-2021, 03:57 PM   #1
kaott
Member
 
Registered: Mar 2020
Posts: 38

Rep: Reputation: Disabled
legacy boot bug with GRUB 2.06, boot loop/stuck at GRUB loading, -current


Howdy,
It seems that GRUB 2.06 has some issues, at least my machines (real PC, and VPS) that boot in legacy mode. My laptop, which uses EFI seems to be unaffected.

I upgraded the Slackware package, did grub-install with the new package installed, and grub-mkconfig to create a new config (probably unnecessary).

I did a quick look at their bug tracker and this seems to be similar to the issue I am facing:
https://savannah.gnu.org/bugs/?60458

The link also seems to indicate building with -Os fixes it, I might try that later if I find the time.

It seems like a lot of folks here use lilo so it probably won't matter that much, but be warned if you use legacy boot and GRUB. I rolled back to 2.04-2 (2.04-3 has the decompressor too big bug) and reinstalled GRUB, and all is working now. I upgraded the package to 2.06 and did a grub-mkconfig and it still seems to be working. So you can upgrade the package, but you probably don't want to install 2.06 if you are using legacy boot.
 
Old 06-09-2021, 04:29 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,914

Rep: Reputation: Disabled
Did you try without -O2?
 
Old 06-09-2021, 04:53 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,914

Rep: Reputation: Disabled
I tried here in Legacy mode with a GPT, no issue. Do you have this issue with a GPT or a DOS partition table?

Last edited by Didier Spaier; 06-09-2021 at 05:05 PM.
 
Old 06-09-2021, 11:45 PM   #4
kaott
Member
 
Registered: Mar 2020
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Did you try without -O2?
Not yet, I might try it tomorrow.

Quote:
Originally Posted by Didier Spaier View Post
I tried here in Legacy mode with a GPT, no issue. Do you have this issue with a GPT or a DOS partition table?
Both are GPT. It very well might be specific to my hardware. The real machine is ivy bridge era with an oddball motherboard, and the VPS could be an issue with the provider (maybe hypervisor or something similar)

Both machines reported that grub-install was successful, and the following grub-mkconfig seemed to work without a hitch (other than warning the os-prober is disabled, or something to that effect).

The real machine was boot looping once it hit "GRUB Loading" and the VPS just hung at that message.
 
Old 06-10-2021, 01:56 AM   #5
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,030

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
Originally Posted by kaott View Post
Howdy,
It seems that GRUB 2.06 has some issues, at least my machines (real PC, and VPS) that boot in legacy mode. My laptop, which uses EFI seems to be unaffected.

I upgraded the Slackware package, did grub-install with the new package installed, and grub-mkconfig to create a new config (probably unnecessary).

I did a quick look at their bug tracker and this seems to be similar to the issue I am facing:
https://savannah.gnu.org/bugs/?60458

The link also seems to indicate building with -Os fixes it, I might try that later if I find the time.

It seems like a lot of folks here use lilo so it probably won't matter that much, but be warned if you use legacy boot and GRUB. I rolled back to 2.04-2 (2.04-3 has the decompressor too big bug) and reinstalled GRUB, and all is working now. I upgraded the package to 2.06 and did a grub-mkconfig and it still seems to be working. So you can upgrade the package, but you probably don't want to install 2.06 if you are using legacy boot.
I confirm the problem here, compiled with -Os, fixes it, here.
 
1 members found this post helpful.
Old 06-10-2021, 03:31 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,914

Rep: Reputation: Disabled
Quote:
Originally Posted by gmgf View Post
I confirm the problem here, compiled with -Os, fixes it, here.
I will upload the one having removed -O2 (-Os is the default) to the Slint repos. I observed that this makes the package a little smaller (107M installed vs 112 M, built for platforms i386-pc, i386-efi, x86_64-efi and x86_64-emu.

Also, I have used --enable-stack-protector when configuring for the efi platforms. The security patch which provided this option is among those under the cover letter Multiple GRUB2 vulnerabilities - 2021/03/02 round. Caveat: this is with gcc-5.5 shipped in Slackware64-14.2.

Last edited by Didier Spaier; 06-10-2021 at 04:55 AM. Reason: Caveat added.
 
1 members found this post helpful.
Old 06-10-2021, 04:11 AM   #7
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,030

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
Originally Posted by Didier Spaier View Post
I will upload the one having removed -O2 (-Os is the default) to the Slint repos. I observed that this makes the package a little smaller (107M installed vs 112 M, built for platforms i386-pc, i386-efi, x86_64-efi and x86_64-emu.

Also, I have used --enable-stack-protector when configuring for the efi platforms. The security patch which provided this option is among those under the cover letter Multiple GRUB2 vulnerabilities - 2021/03/02 round. Caveat: this is with gcc-5.5 shipped in Slacwkare64-14.2.
Right, @Didier, i confirm this, the package is little smaller.
 
Old 06-10-2021, 05:03 PM   #8
kaott
Member
 
Registered: Mar 2020
Posts: 38

Original Poster
Rep: Reputation: Disabled
-Os fixed it on the VPS, haven't tried it on the real machine yet (I suspect it will probably fix it)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Grub Legacy: delay of more than 2 minutes loading initrd from EXT4 filesystem mrmazda Linux - General 19 03-06-2020 03:48 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Stuck at grub legacy prompt after boot. dgonzalezh Linux - Newbie 12 05-18-2012 11:32 PM
[SOLVED] GRUB legacy chainloading grub2 (ubuntu) not loading, goes text mode JZL240I-U Linux - Software 12 06-21-2011 04:31 AM
LXer: OpenOffice Bug-- Stuck in Document Recovery Loop LXer Syndicated Linux News 0 11-16-2010 12:10 AM

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

All times are GMT -5. The time now is 04:53 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