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.
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.
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.
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
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.
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.
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.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,167
Original Poster
Rep:
Quote:
Originally Posted by Jan K.
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.
#
# 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 ###
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
#
# 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.
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.
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
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.
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,018
Rep:
Quote:
Originally Posted by cwizardone
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.