LinuxQuestions.org
Visit Jeremy's Blog.
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 08-16-2023, 05:28 AM   #136
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594

I would like to be asked to update the grub.cfg , or have the option to disable auto-updating of the grub.cfg with kernel upgrades.

Last edited by colorpurple21859; 08-16-2023 at 08:11 AM.
 
1 members found this post helpful.
Old 08-16-2023, 07:58 AM   #137
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Quote:
Originally Posted by LuckyCyborg View Post
So, you think that RHEL, SUSE, Debian, everybody else are wrong too, because they DO call the (re)generation of initrd and GRUB2 configuration from the kernel packege scriptlets? Because that's how they do.
Personally, I think RHEL, SUSE and Debian do a lot of things wrong, but that's beside the point. This isn't RHEL, or SUSE, or Debian. Those are all auto-managed hands-off distros, Slackware's niche, at least up to now, has been its hand-on nature.

Anyway, all that is moot. I'm not against auto-generation of initrd on a kernel package install/update (My slackup util even comes with support for running post-install scripts and an example script which does exactly this). What I'm against is triggering the action from within doinst.sh.
 
4 members found this post helpful.
Old 08-16-2023, 08:34 AM   #138
chemfire
Member
 
Registered: Sep 2012
Posts: 426

Rep: Reputation: Disabled
Quote:
Slackware's niche, at least up to now, has been its hand-on nature.
See I don't think that is really true or ever was. First SLS and then Slackware, were by their very definition about automation, being able to install and setup a running system without having to build a filesystem on some other host first. Slackware has always done a lot of stuff FOR you like configuring LILO, setting up network, making it somewhat easy to turn on and off daemons etc.

What it has avoided ever doing was trying to prevent you from modifying the system in anyway you like, or doing anything surprising like undoing your changes because "it knows better", or trying to 'adapt' on the fly - ie oh hey you added a new NIC so lets blow away the configuration you had from the other ones, because nobody ever connects up hardware to test something quick we always want to completely reconfigure the host right right? Finally its usually understandable where things are coming from and what is behind them, ie shell scripts you can go read, rather than binary blobs.

Any I think Slackware isn't about not automating, it is about not over-automating, and it should handle nominal use cases out of the box without excess fuss. I think that includes installing the boot loader and keeping it coherent across official kernel package updates (including during current). If it also handles custom kernels nicely, well that is better as long as it does not become to complex to understand and ration about what is going to happen easily.

If you truly want hands on - there is LFS.
 
2 members found this post helpful.
Old 08-16-2023, 09:16 AM   #139
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by GazL View Post
Personally, I think RHEL, SUSE and Debian do a lot of things wrong, but that's beside the point. This isn't RHEL, or SUSE, or Debian. Those are all auto-managed hands-off distros, Slackware's niche, at least up to now, has been its hand-on nature.
With all respect, the Slackware arrived to become a niche Linux distribution from a mainstream position.

And I am afraid that it become "a niche Linux distribution" by having unpredictable release dates and delivering features always too late. And by questionable decisions like the removal of GNOME, transforming LinuxPAM and/or PulseAudio on "controversial issues" when everybody used them, by not shipping NGINX or whatever features the server guys needed, and even by making a release on KDE4 when everybody else already showed up the Plasma5. And yes, playing Jihad with ConsoleKit2 certainly does not helped much. Or the requirement to manually intervention on system boot and shipping obsolete bootloaders by default.

Now excuse me, Mr. GAZL, but Slackware hasn't been a niche Linux distro, but had become one because the majority of the Slackware users ran away. You can blame me, but I dream about some of them to return back...

I believe that you can (and should be able to) play your "hands-on" with Slackware as you wish, but Slackware should deliver some robust default features for the system boot.

Quote:
Originally Posted by GazL View Post
Anyway, all that is moot. I'm not against auto-generation of initrd on a kernel package install/update (My slackup util even comes with support for running post-install scripts and an example script which does exactly this). What I'm against is triggering the action from within doinst.sh.
with all respect, this is a well tested and proved way (by all those today mainstream distros) to handle this system boot features, and if you are against it, just don't use it.

You can continue to do everything by hand, as you like. I strive to ensure that you can be always able to do this.

BUT, the adding this features support to installpkg/upgradepkg (or whatever else) script will not work always, because you will need to hard code the packages name to which them will be available. And an example against was said by a friend of mine: some people may need to include in initrd proprietary modules for certain storage hardware (i.e. RAID cards) . And yes, there's DKMS to automate the building the kernel modules, BUT how you update your initrd when you install/upgrade a random package?

Last edited by LuckyCyborg; 08-16-2023 at 10:01 AM.
 
Old 08-16-2023, 09:34 AM   #140
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
Back to grub on a uefi motherboard with a fairly fresh install of slackware-current

I have a elilo working swell. I've installed grub, but it will not boot.

If I boot from the slackware cd and select boot any operating system, it shows both elilo and grub. If I select grub, the screen flashes for an instant and then returns with the grub screen, now showing just slackware, no grub.

I'd like to get grub running... I'm also reading that a new version of grub is now in beta release, which makes me wonder if the grub in -current is on the broken side.
 
Old 08-16-2023, 09:58 AM   #141
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by jkh2cpu View Post
Back to grub on a uefi motherboard with a fairly fresh install of slackware-current

I have a elilo working swell. I've installed grub, but it will not boot.

If I boot from the slackware cd and select boot any operating system, it shows both elilo and grub. If I select grub, the screen flashes for an instant and then returns with the grub screen, now showing just slackware, no grub.

I'd like to get grub running... I'm also reading that a new version of grub is now in beta release, which makes me wonder if the grub in -current is on the broken side.
You are kind to explain how you installed the GRUB2 on your UEFI mode? I for one, I have never hit a case where ELILO works but GRUB2 doesn't.

And would be very useful also to show us your /boot/grub/grub.cfg.

Anyway, please note that if you install the GRUB2 from installer system, you need to bind /dev, /proc and /sys on target system (mounted on /mnt) by using mkbindmounts or manually, then you should chroot to /mnt and to mount also the /boot/efi.

You may just boot your system with ELILO, then to mount (if not is mounted yet) the ESP, usually this /boot/efi.

Finally, from there you call the the grub-install. Failing to make any of these steps will end in a failure on installing GRUB2.

Yeah, this means manually installing GRUB2, and hopefully in the future we will have that grubconfig about we talk about, to make these steps for us.

Last edited by LuckyCyborg; 08-16-2023 at 10:15 AM.
 
Old 08-16-2023, 10:11 AM   #142
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167

Original Poster
Rep: Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339Reputation: 7339
Quote:
Originally Posted by Jan K. View Post
Could Lilo be kept as "Optional bootloader"?

Asking as my brand new pc was selected with motherboard (Asus) being able to boot in legacy mode, ie disabling uefi, secure boot and what not. As basic as it can be, please.

Of course it's a lot to ask, being the last and only person on the planet loving little Lilo!
You are not alone.
What is that old saying? Something along the line of, "They will have to pry it out of my cold, dead hands."

Last edited by cwizardone; 08-16-2023 at 10:19 AM. Reason: Typo.
 
Old 08-16-2023, 10:11 AM   #143
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
Grub exists on /boot/efi/EFI/grub.

Here's the grub.cfg

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=dejavusansmono
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
font="/usr/share/grub/dejavusansmono.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-15.0+ GNU/Linux' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
submenu 'Advanced options for Slackware-15.0+ GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
menuentry 'Slackware-15.0+ GNU/Linux, with Linux 6.1.45' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.45-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux 6.1.45 (recovery mode)' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.45-recovery-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux generic' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux generic (recovery mode)' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-recovery-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
 
1 members found this post helpful.
Old 08-16-2023, 10:16 AM   #144
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by jkh2cpu View Post
Grub exists on /boot/efi/EFI/grub.
That's great! But, HOW you installed the GRUB2 bootloader? With which command(s) ?

Also, I would like to known the output of the command:
Code:
efibootmgr
Quote:
Originally Posted by jkh2cpu View Post
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=dejavusansmono
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
font="/usr/share/grub/dejavusansmono.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-15.0+ GNU/Linux' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
submenu 'Advanced options for Slackware-15.0+ GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
menuentry 'Slackware-15.0+ GNU/Linux, with Linux 6.1.45' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.45-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux 6.1.45 (recovery mode)' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.45-recovery-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux 6.1.45 ...'
linux /boot/vmlinuz-generic-6.1.45 root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux generic' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-advanced-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
menuentry 'Slackware-15.0+ GNU/Linux, with Linux generic (recovery mode)' --class slackware_15_0_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-generic-recovery-5b89f6f2-cf85-42b1-99c4-c8f1b96f6412' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 5b89f6f2-cf85-42b1-99c4-c8f1b96f6412
echo 'Loading Linux generic ...'
linux /boot/vmlinuz-generic root=UUID=5b89f6f2-cf85-42b1-99c4-c8f1b96f6412 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
You are kind to wrap this with [code] tags for readibility? Thanks you!

Last edited by LuckyCyborg; 08-16-2023 at 10:21 AM.
 
Old 08-16-2023, 10:25 AM   #145
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
How I installed grub

grub-install --target=x86_64-efi --bootloader-id=grub --recheck --debug --removable --verbose
grub-mkconfig -o /boot/grub/grub.cfg

efibootmgr:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0000
Boot0000* Slackware HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\SLACKWARE\ELILO.EFI)
Boot0001* grub HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\GRUB\GRUBX64.EFI)
Boot0002* UEFI OS HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
root@darkstar:/etc/default#
 
Old 08-16-2023, 10:29 AM   #146
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by jkh2cpu View Post
How I installed grub

grub-install --target=x86_64-efi --bootloader-id=grub --recheck --debug --removable --verbose
grub-mkconfig -o /boot/grub/grub.cfg

efibootmgr:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0002,0000
Boot0000* Slackware HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\SLACKWARE\ELILO.EFI)
Boot0001* grub HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\GRUB\GRUBX64.EFI)
Boot0002* UEFI OS HD(1,GPT,d2d27067-1786-40ac-bbdb-4e4ff40e7c44,0x800,0x32000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
root@darkstar:/etc/default#
Again, do you mounted the /boot/efi before executing these commands?

And another question: do you are sure that your motherboard accept to run /EFI/BOOT/BOOTX64.EFI ? Some motherboards doesn't.

I ask this because the option --removable will put in this place the EFI binary for GRUB2.

And AGAIN: Please use the [code] tags to wrap you output or files content, to me be able to read what you wrote.

I ask about something like this:
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
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=dejavusansmono
else
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  16785c92-cdf3-49d0-86d8-c16d57586653
else
  search --no-floppy --fs-uuid --set=root 16785c92-cdf3-49d0-86d8-c16d57586653
fi
    font="/usr/share/grub/dejavusansmono.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-15.0 GNU/Linux, with Linux Huge 5.15.118' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.118-advanced-huge-16785c92-cdf3-49d0-86d8-c16d57586653' {
	savedefault
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  16785c92-cdf3-49d0-86d8-c16d57586653
	else
	  search --no-floppy --fs-uuid --set=root 16785c92-cdf3-49d0-86d8-c16d57586653
	fi
	echo	'Loading Linux 5.15.118 ...'
	linux	/boot/vmlinuz-huge-5.15.118 root=/dev/sda3 ro mitigations=off preempt=voluntary usb-storage.quirks=0bda:1a2b:i resume=UUID=4508b533-51a0-4676-a4a2-f36d1d24e5fe scsi_mod.use_blk_mq=1 zswap.enabled=1 zswap.compressor=lzo zswap.max_pool_percent=20 zswap.zpool=z3fold rootflags=noatime,commit=60,errors=remount-ro,defaults 
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux Generic 5.15.118' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.118-advanced-generic-16785c92-cdf3-49d0-86d8-c16d57586653' {
	savedefault
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  16785c92-cdf3-49d0-86d8-c16d57586653
	else
	  search --no-floppy --fs-uuid --set=root 16785c92-cdf3-49d0-86d8-c16d57586653
	fi
	echo	'Loading Linux 5.15.118 ...'
	linux	/boot/vmlinuz-generic-5.15.118 root=UUID=16785c92-cdf3-49d0-86d8-c16d57586653 ro mitigations=off preempt=voluntary usb-storage.quirks=0bda:1a2b:i resume=UUID=4508b533-51a0-4676-a4a2-f36d1d24e5fe scsi_mod.use_blk_mq=1 zswap.enabled=1 zswap.compressor=lzo zswap.max_pool_percent=20 zswap.zpool=z3fold rootflags=noatime,commit=60,errors=remount-ro,defaults 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-generic-5.15.118.img
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux 6.4.10-custom' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.4.10-custom-advanced-default-16785c92-cdf3-49d0-86d8-c16d57586653' {
	savedefault
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  16785c92-cdf3-49d0-86d8-c16d57586653
	else
	  search --no-floppy --fs-uuid --set=root 16785c92-cdf3-49d0-86d8-c16d57586653
	fi
	echo	'Loading Linux 6.4.10-custom ...'
	linux	/boot/vmlinuz-6.4.10-custom root=UUID=16785c92-cdf3-49d0-86d8-c16d57586653 ro mitigations=off preempt=voluntary usb-storage.quirks=0bda:1a2b:i resume=UUID=4508b533-51a0-4676-a4a2-f36d1d24e5fe scsi_mod.use_blk_mq=1 zswap.enabled=1 zswap.compressor=lzo zswap.max_pool_percent=20 zswap.zpool=z3fold rootflags=noatime,commit=60,errors=remount-ro,defaults 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-6.4.10-custom.img
}
menuentry 'Slackware-15.0 GNU/Linux, with Linux 6.1.45-custom' --class slackware_15_0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.45-custom-advanced-default-16785c92-cdf3-49d0-86d8-c16d57586653' {
	savedefault
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  16785c92-cdf3-49d0-86d8-c16d57586653
	else
	  search --no-floppy --fs-uuid --set=root 16785c92-cdf3-49d0-86d8-c16d57586653
	fi
	echo	'Loading Linux 6.1.45-custom ...'
	linux	/boot/vmlinuz-6.1.45-custom root=UUID=16785c92-cdf3-49d0-86d8-c16d57586653 ro mitigations=off preempt=voluntary usb-storage.quirks=0bda:1a2b:i resume=UUID=4508b533-51a0-4676-a4a2-f36d1d24e5fe scsi_mod.use_blk_mq=1 zswap.enabled=1 zswap.compressor=lzo zswap.max_pool_percent=20 zswap.zpool=z3fold rootflags=noatime,commit=60,errors=remount-ro,defaults 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd-6.1.45-custom.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
Try to quote this post to see what I did.

Last edited by LuckyCyborg; 08-16-2023 at 10:32 AM.
 
Old 08-16-2023, 10:36 AM   #147
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
Yes, /boot/efi was mounted.

my ESP looks like this:

root@darkstar:/boot/efi/EFI# ls * -l
BOOT:
total 272
-rwxr-xr-x 1 root root 139264 Aug 14 09:42 BOOTX.EFI
-rwxr-xr-x 1 root root 139264 Aug 15 17:41 BOOTX64.EFI

Slackware:
total 19812
-rwxr-xr-x 1 root root 165 Aug 15 15:20 elilo.conf
-rwxr-xr-x 1 root root 140 Aug 15 15:15 elilo.conf~
-rwxr-xr-x 1 root root 239734 Aug 5 2022 elilo.efi
-rwxr-xr-x 1 root root 11727471 Aug 15 15:20 initrd.gz
-rwxr-xr-x 1 root root 8317600 Aug 11 16:16 vmlinuz

grub:
total 137
drwxr-xr-x 2 root root 512 Aug 14 10:00 BOOT
-rwxr-xr-x 1 root root 139264 Aug 12 17:28 grubx64.efi
root@darkstar:/boot/efi/EFI#

(I've tried a lot of things ;-) )

I can boot from the slackware cd, so yes, BOOTX64.EFI works on this machine.


And what do you means 'tags?'
 
Old 08-16-2023, 10:42 AM   #148
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by jkh2cpu View Post
Yes, /boot/efi was mounted.

my ESP looks like this:

root@darkstar:/boot/efi/EFI# ls * -l
BOOT:
total 272
-rwxr-xr-x 1 root root 139264 Aug 14 09:42 BOOTX.EFI
-rwxr-xr-x 1 root root 139264 Aug 15 17:41 BOOTX64.EFI

Slackware:
total 19812
-rwxr-xr-x 1 root root 165 Aug 15 15:20 elilo.conf
-rwxr-xr-x 1 root root 140 Aug 15 15:15 elilo.conf~
-rwxr-xr-x 1 root root 239734 Aug 5 2022 elilo.efi
-rwxr-xr-x 1 root root 11727471 Aug 15 15:20 initrd.gz
-rwxr-xr-x 1 root root 8317600 Aug 11 16:16 vmlinuz

grub:
total 137
drwxr-xr-x 2 root root 512 Aug 14 10:00 BOOT
-rwxr-xr-x 1 root root 139264 Aug 12 17:28 grubx64.efi
root@darkstar:/boot/efi/EFI#

(I've tried a lot of things ;-) )
Yep, I have seen this.

First of all, please remove any references to GRUB2 on efibootmgr - this mean executing something like this:
Code:
efibootmgr -q -B -b 0001
BIG FAT WARNING: be careful at the numerical parameter, you risk to broke your boot, i.e. you ELILO.

Then, please try the following command from the target system (NOT from Slackware installer) with /boot/efi mounted.
Code:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --recheck
Then please show me the output of this command.


Quote:
Originally Posted by jkh2cpu View Post
I can boot from the slackware cd, so yes, BOOTX64.EFI works on this machine.
Some UEFI motherboards accepts to boot from an external drive using the path /EFI/BOOT/BOOTX64.EFI, while NOT accepting the same path for an internal hard drive. Even my self I have several motherboards which has this behavior.

So, the fact that you can boot from Slackware CD does NOT mean that the path /EFI/BOOT/BOOTX64.EFI works also for your internal hard drive.

Quote:
Originally Posted by jkh2cpu View Post
And what do you means 'tags?'
Please read carefully the documentation from the link bellow, before posting anything else. To express in a readable mode I believe is the first step to ask for help.

https://www.bbcode.org/reference.php

Last edited by LuckyCyborg; 08-16-2023 at 10:51 AM.
 
Old 08-16-2023, 10:49 AM   #149
jkh2cpu
Member
 
Registered: Feb 2014
Location: Michigan, USA
Distribution: slackware
Posts: 287

Rep: Reputation: 63
Please forget about /EFI/BOOT/BOOTX64.EFI; right now that's a red herring. It's the grub entry that I'm concerned about.

I'll read your bit and continue to post.
 
Old 08-16-2023, 10:57 AM   #150
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,018

Rep: Reputation: Disabled
Quote:
Originally Posted by cwizardone View Post
You are not alone.
What is that old saying? Something along the line of, "They will have to pry it out of my cold, dead hands."
Thank God no need to change bootloader. I am staying with elilo as it works on my notebook so no reason to switch to grub.
While I understand the move, I aslo think that lilo/elilo should stay as grub has enough issues on its own.
 
  


Reply

Tags
grub, grub2



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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

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

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