LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-25-2023, 08:46 AM   #16
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled

+1 for refind

Since I'd prefer them in this order:
lilo/elilo just like it's shipped now in 15.0
syslinux
refind
runit
grub-legacy
grub2

Tried, used, but only need 1% of grub features really.

Quote:
Originally Posted by knet View Post
Adding insmod efi_gop to the grub boot entry for my 2nd install seem to work. No error message now.
Mark solved then? I didn't realize only the error was the issue.
Thought it's closely related to (FTIO's) nvidia bug, where all display is blank after the loader completes, which is a nasty bug.
And you did tag this 'nvidia' so excuse the assumption I made, that the display is fully offline up until login/startx.
 
Old 03-25-2023, 09:50 AM   #17
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by elcore View Post
...
Mark solved then? I didn't realize only the error was the issue.
Thought it's closely related to (FTIO's) nvidia bug, where all display is blank after the loader completes, which is a nasty bug.
And you did tag this 'nvidia' so excuse the assumption I made, that the display is fully offline up until login/startx.
Not yet. The error message persists after reboot despite doing the tweak that's supposed to make it permanent. And you're right there's an nvidia tag because my gpu is nvidia. We're okay elcore, cheers!
 
Old 03-25-2023, 10:47 AM   #18
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by knet View Post
The error message persists after reboot despite doing the tweak that's supposed to make it permanent.
I'd just simply add it directly to grub.cfg like marav said, don't overcomplicate things.
There's nothing in Slackware that's overwriting that file without your permission, unless you insist to manually overwrite it with mkconfig or some update-grub script.
 
Old 03-25-2023, 12:19 PM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,400

Rep: Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595Reputation: 1595
Quote:
Adding insmod efi_gop to the grub boot entry for my 2nd install seem to work. No error message now. How can i make that permanent? Will adding GRUB_PRELOAD_MODULE=efi_gop in the /etc/default/grub file do that?
yes if you run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
after making the edit.
Or as has been suggested by elcore, edit /boot/grub/grub.cfg directly. Unlike other distros Slackware doesn't auto-update the grub.cfg with updates. If you edit the /boot/grub/grub.cfg directly change the /boot/vmlinuz-...-<version nmuber> to either /boot/vmlinuz-huge or /boot/vmlinuz-generic depending on which kernel you use.

Last edited by colorpurple21859; 03-25-2023 at 12:21 PM.
 
Old 03-25-2023, 09:58 PM   #20
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by elcore View Post
... don't overcomplicate things.
I'm actually making things simple for me. You'll be surprised. I'm still learning. Chill!

Quote:
Originally Posted by elcore View Post
... unless you insist to manually overwrite it with mkconfig ...
You mean unless I insist on updating the kernel when available and necessary, right?
 
Old 03-25-2023, 10:01 PM   #21
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by colorpurple21859 View Post
yes if you run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
after making the edit.
Or as has been suggested by elcore, edit /boot/grub/grub.cfg directly. Unlike other distros Slackware doesn't auto-update the grub.cfg with updates. If you edit the /boot/grub/grub.cfg directly change the /boot/vmlinuz-...-<version nmuber> to either /boot/vmlinuz-huge or /boot/vmlinuz-generic depending on which kernel you use.
Do you think this error message has nothing to do with not using the nvidia driver?
 
Old 03-26-2023, 03:10 AM   #22
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by knet View Post
You mean unless I insist on updating the kernel when available and necessary, right?
See the 1.) upstream kernel 'make install' script, as shipped by kernel.org, and 2.) kernel package doinst.sh script, as shipped by Slackware.
It's certainly not updating grub files. If you do update your grub files along with the kernel, that is your responsibility and not Slackware's.
Furthermore, if you use another distro to update your grub files, I don't see how is that Slackware responsibility either, which is why I asked you to post full grub.cfg in post #2
 
1 members found this post helpful.
Old 03-26-2023, 03:28 AM   #23
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,078

Rep: Reputation: Disabled
Quote:
Originally Posted by elcore View Post
Furthermore, if you use another distro to update your grub files, I don't see how is that Slackware responsibility either, which is why I asked you to post full grub.cfg in post #2
+1 to that.

Further, the naming scheme of the initramfs in Slackware: "/boot/initrd.gz" is recognized by default neither by grub-mkconfig in grub nor by os-prober. To overcome this grub in Slackware is patched with this:
Code:
diff -Naur grub-2.00.orig/util/grub.d/10_linux.in grub-2.00/util/grub.d/10_linux.in
--- grub-2.00.orig/util/grub.d/10_linux.in    2012-04-18 23:24:38.000000000 +0200
+++ grub-2.00/util/grub.d/10_linux.in    2012-06-30 07:53:03.765625589 +0200
@@ -198,7 +198,8 @@
        "initramfs-genkernel-${version}" \
        "initramfs-genkernel-${alt_version}" \
        "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
-       "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
+       "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}" \
+       "initrd.gz"; do
     if test -e "${dirname}/${i}" ; then
       initrd="$i"
       break
But if grub-mkconfig is run from a distribution not "Slackware initramfs naming scheme aware" grub-mkconfig, not find the initrd, does not write a line for it in grub.cfg so if a generic kernel is used this leads to a kernel panic.

Last edited by Didier Spaier; 03-26-2023 at 03:29 AM.
 
Old 03-26-2023, 03:48 AM   #24
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,617

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Quote:
Originally Posted by elcore View Post
Furthermore, if you use another distro to update your grub files, I don't see how is that Slackware responsibility either, which is why I asked you to post full grub.cfg in post #2
I for one I believe that in fact it's a very bad idea the delegation of boot loading to another operating system.

That's WHY I use rEFInd as Boot Manager (not abusing it as Boot Loader, then ending with copying kernels around), chainloading the EFI GRUB2 binaries of Slackware, Ubuntu and openSUSE, each one doing its business and only its business.

Maybe this setup looks complicated at first sight, BUT each operating system is fully independent, in the end this simplifying considerably the maintenance.

In the end, it's a practical example of the old saying: don't complicate your life for the sake of simplicity.

Last edited by LuckyCyborg; 03-26-2023 at 03:55 AM.
 
Old 03-26-2023, 04:05 AM   #25
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by elcore View Post
...
If you do update your grub files along with the kernel, that is your responsibility and not Slackware's.
100% agree with you here.

Quote:
Originally Posted by elcore View Post
Furthermore, if you use another distro to update your grub files,...
This is actually funny. Who is that "you"? It's not me. I am curious though why the assumption.

I told you I'm not over complicating things. I've gone from dualbooting Slack_XFCE and Slack_DAW to Slack_DAW only. Whew!
 
Old 03-26-2023, 04:12 AM   #26
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by LuckyCyborg View Post
I for one I believe that in fact it's a very bad idea the delegation of boot loading to another operating system.
100% agree

Quote:
Originally Posted by LuckyCyborg View Post
That's WHY I use rEFInd as Boot Manager...
Next time I dualboot/multiboot I will consider rEFInd first.

Quote:
Originally Posted by LuckyCyborg View Post
Maybe this setup looks complicated at first sight, BUT each operating system is fully independent, in the end this simplifying considerably the maintenance.
I think it's cool.
 
Old 03-26-2023, 04:38 AM   #27
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by knet View Post
This is actually funny. Who is that "you"? It's not me. I am curious though why the assumption.
Is there "someone else" who you think is responsible for executing grub-mkconfig and taking care of your personal boot loader configuration?
I didn't assume a damn thing, you put lmde in your list of distributions and then expect Slackware users to conform with lmde grub2 upgrade policy.
There's no such thing in Slackware yet, if you did read the actual scripts involved you would know, and wouldn't have to ask for confirmation.
 
Old 03-26-2023, 05:09 AM   #28
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by elcore View Post
Is there "someone else" who you think is responsible for executing grub-mkconfig and taking care of your personal boot loader configuration?
I didn't assume a damn thing, you put lmde in your list of distributions
Well that is a plain stupid assumption. Just because i have listed lmde there doesn't mean I use it to do what is that you're saying? "use another distro to update your grub files". Just stupid.

Quote:
Originally Posted by elcore View Post
and then expect Slackware users to conform with lmde grub2 upgrade policy.
Plain stupid assumption here again. I am not expecting Slackware users to conform with lmde blah blah blah.

Quote:
Originally Posted by elcore View Post
There's no such thing in Slackware yet, if you did read the actual scripts involved you would know, and wouldn't have to ask for confirmation.
I told you I am grub noob and because of that I am humbly inclined to at least be wary of this warning from grub.cfg. That is all.
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
 
Old 03-26-2023, 05:16 AM   #29
knet
Member
 
Registered: Jun 2021
Distribution: Slackware Linux, LMDE5, Porteus
Posts: 166

Original Poster
Rep: Reputation: 13
I am sorry guys and yes I am grateful for the replies. I already marked this thread solved. I only have a full install of Slackware64-15.0 with DAW template. Thanks again.
 
Old 03-26-2023, 05:32 AM   #30
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by knet View Post
Just because i have listed lmde there doesn't mean I use it to do what is that you're saying? "use another distro to update your grub files". Just stupid.
No it doesn't, but if you have lmde installed and update its kernel, it'll overwrite the cfg whether you like it or not.
Which is a distribution policy, and not standard for other distros to conform to.

Quote:
Originally Posted by knet View Post
at least be wary of this warning from grub.cfg.
I have no such warning in that file because I'm perfectly capable of writing one myself, tyvm.
 
  


Reply

Tags
dual boot, error message, grub2, nvidia, slackware 15.0



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
[SOLVED] Solving grub "booting in blind mode" . I want to see the Tux penguins! emidevices Slackware 4 12-30-2021 02:06 AM
invalid video mode specification 1280x768 booting in blind mode. heromedel Linux - Newbie 8 05-16-2018 07:39 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: Proprietary browsers built on proprietary browsers: the blind leading the blind LXer Syndicated Linux News 0 09-15-2009 12:20 AM
Blind leading the Blind allforcarrie LinuxQuestions.org Member Intro 2 09-15-2004 01:50 AM

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

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