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 06-09-2021, 03:57 PM   #1
kaott
Member
 
Registered: Mar 2020
Posts: 63

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-15.0
Posts: 11,058

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-15.0
Posts: 11,058

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: 63

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,215

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
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-15.0
Posts: 11,058

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,215

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
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: 63

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)
 
Old 06-15-2021, 01:30 AM   #9
tgerov
LQ Newbie
 
Registered: May 2021
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
I had the same problem with the GRUB on legacy BIOS.

Compiling grub with -Os also works for me.
 
Old 06-15-2021, 01:02 PM   #10
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 608

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
@Didier I'm a bit confused with GRUB 2.06, what do you think is worth installing on a production server with UEFI?
I've stayed at ELILO's for now.
Could I have problems?
Debian and Fedora, for example, are still at 2.04
 
Old 06-15-2021, 01:10 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by teoberi View Post
@Didier I'm a bit confused with GRUB 2.06, what do you think is worth installing on a production server with UEFI?
I've stayed at ELILO's for now.
Could I have problems?
Debian and Fedora, for example, are still at 2.04
I don't expect any big issue using GRUB 2.06. Its maintenance is handled in a very professional way.
 
1 members found this post helpful.
Old 07-27-2021, 10:21 AM   #12
djemos
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
I confirm the problem with GRUB 2.06, only on slackware current x86 system. Not having problems with EFI and x86_64 slackware64 current.
I fix it recompiling grub packages for both x86 and x86_64 with CFLAGS -Os
 
Old 07-27-2021, 09:32 PM   #13
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 317

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
I don't expect any big issue using GRUB 2.06. Its maintenance is handled in a very professional way.
By professional way do you mean its lead's employer makes sure he's kept super busy with non-GRUB tasks to keep him on his toes? At least in the country I'm in this is what professional employment is, no time to relax or contemplate. I'm glad some of these GNU maintainers can get a good paycheck with the big companies, but it's not any kind of sinecure or patronage from what I can see. Must be anxiety inducing to have demands both from the likes of us and the paying people.
 
1 members found this post helpful.
  


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
Grub Legacy: delay of more than 2 minutes loading initrd from EXT4 filesystem mrmazda Linux - General 20 11-16-2021 12:35 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 11:07 AM.

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