SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There is a --install-modules option and a --modules= option that preloads modules
What I did at the grub prompt was lsmod and compared the output of my ubuntu grub compared to slackware grub
Last edited by colorpurple21859; 11-03-2019 at 05:23 PM.
haha in that tut, they show what my system no have
Code:
userx@slack64efi.net:/etc/grub.d
$ ls
00_header 10_linux 20_linux_xen 30_os-prober 40_custom 41_custom README
the 05_debian_theme file.
going to find a theme then using that example in there page for a template then hack away a little and see what I can come up with.
got to toss it in that dir to see if grub-update will even pick it up first. Got to go hunt down a copy paste so I don't got to write it all out because them are images...
userx@slack64efi:/etc/grub.d$ update-grub
Generating grub configuration file ...
Found background: /usr/share/grub/Andreea-Munteanu-001.jpg
/etc/grub.d/05_debian_theme: line 21: /usr/lib/grub/grub-mkconfig_lib: No such file or directory
so far, but still not working.
goes in /etc/grub.d/05_slackware_theme and that still gets picked up running update-grub or grub-mkconfig -o /boot/grub/grub.cfg (same thing) .. but no image showing.
Code:
#!/usr/bin/env bash
source /usr/share/grub/grub-mkconfig_lib
set_blue_theme()
{
cat << EOF
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
EOF
}
#check for usable backgrounds
use_bg=false
# I do not think this ever gets figured out
#so I commented it out and it then shows output
#in terminal when update-grub is ran
#providing one has an image in the dir the for loop
#is looking in
#if [ "$GRUB_TERMINAL" = "gfxterm" ] ; then
{
for i in {/boot/grub/*,/usr/share/grub/*,/usr/share/grub/images/*}{png,tga,jpg,jpeg} ; do
{
echo "$i"
#there is a BUG in that call
#if is_path_readable_by_grub $i ; then
if [ -f $i ] ; then
{
bg=$i
case ${bg} in
*.png) reader=png ;;
*.tag) reader=tga ;;
*.jpg|*.jpeg) reader=jpeg ;;
esac
}
if test -e /boot/grub/x86_64-efi/${reader}.mod ; then
{
echo "Found Slackware Background:: `basename ${bg}`" >&2
use_bg=true
break
}
fi
fi
}
done
}
#fi
userx@slack64efi.net:~
$ ls /boot/grub/x86_64-efi/png.mod
/boot/grub/x86_64-efi/png.mod
userx@slack64efi.net:~
$ ls /boot/grub/x86_64-efi/tga.mod
/boot/grub/x86_64-efi/tga.mod
userx@slack64efi.net:~
$ ls /boot/grub/x86_64-efi/jpeg.mod
/boot/grub/x86_64-efi/jpeg.mod
still looking deeper into the theme part too.
This might work if I install Debian but that's never going to happen...
Been playing around with this both in vm and on bare metal using the slackware-grub2-theme from slackbuilds.
At the very minimum to get this to work, add this to /etc/default/grub
It may be a different grub video module for your system, there is also an efi_uga and a few other grub video modules.
at the grub menu when you first boot, press C then
Code:
grub>videoinfo
should give you an idea of which module to preload, but this may not always work.
also works on my systems, I think it preloads all grub video modules.
I think we've been spinning our wheels, mostly you. I just tried to boot a usb stick which didn't take off the boot, so I used the Esc key to give me my (BIOS) boot options, then I seen my Slackware 14+ selection and used that instead of the grub options, and well, guess what.
come on Guess!!!
I seen the theme screen. Therefore, I bet that its been working this entire time, but, it was due to the means being used that it was not showing is all.
Though I cannot say for sure, I did try your suggestion
which did not show any change on my "normal" boot to grub. but anyways yeah it is how my system is set up to boot slacks grub64.efi ..I'll have to look into that part now. thanks for all of your due diligence.
One of the vms I was testing with, has the efi partition on /dev/sdb, and It has the same issue you describe, where I have to go to vm bios and select the Slackware 14+ to get the grub theme to show. Even when I would make Slackware 14+ as default bootloader with efibootmgr same thing would happen.
I just thought it was just a quirk with the vm. Guess not, either grub and/or the efi firmware has issues when the efi partition isn't the first drive.
Last edited by colorpurple21859; 11-07-2019 at 08:43 AM.
One of the vms I was testing with, has the efi partition on /dev/sdb, and It has the same issue you describe, where I have to go to vm bios and select the Slackware 14+ to get the grub theme to show. Even when I would make Slackware 14+ as default bootloader with efibootmgr same thing would happen.
I just thought it was just a quirk with the vm. Guess not, either grub and/or the efi firmware has issues when the efi partition isn't the first drive.
yeah, looks that way. I am now in the process of moving my efi partition onto my sda drive, after rsync gets done.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.