LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-27-2023, 07:46 AM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593

I like the fact that slackware doesn't auto-update the grub.cfg with updates. I multiboot a few distos and use slackware grub as the main bootloader by editing the grub.cfg for a customized grub menu and I don't have to worry about my grub.cfg edits getting written over by an update.
 
2 members found this post helpful.
Old 04-27-2023, 08:00 AM   #17
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 677
Blog Entries: 1

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
@LuckyCyborg I understand what you said.
Look my opinion: I m a farmer.I was clever and good in school as kid. But I dont have university studies because
I was from a poor family... I got my first pc when I was 25. I worked one year to pay its price. Those days was first time out windoz xp. I never liked but without internet connection ... thats what I had...
From windows I learned nothing. Just clicks...
The first day that isdn internet came to our place I pay for that and the second day I boot linux.
No documentation, no nothing, I had big problems... until I hear about a new distro, ubuntu
I was for some years one of best ubuntu supporters in my country. Because in easy way I installed linux in my pc and it was easy working and I had support from lot people in forums, irc etc...
From 1 to 100 I learned 10 about linux from ubuntu. And that distro was the reason to stay in linux....
Because things was easy and I had support for everything from the community.

But I was in 10 for years... until I found slackware. I installed Slackware first time because I wanted to be a hacker
well I never became a hacker but I never uninstalled slackware also!
First year in slackware from from 10 to 100 , I learned 40 !!! and that because of Slackware.
Now I think I m ok with my learns about (60-70) and always I m learning something from all of you...

I want to say that some things is not easy in Slackware because that is the philosophy of the project!
To be KISS and complicate together. To boot and not booting.
It was the only distro for me , a man without studies, to help me learn something with this philosophy...!

I really want the same with you for bootloader and the future of slackware, and yes for our BDFL is not more than one hour work to make this and others more easy for users...
what can I say is: He dont want to do it for some reason(s) or its not the time yet...
Thats slack! The Slack we all love
The best linux disto ever!.

ps(funny): for those guys who said that slackware can boot and not boot at the same time, ask them to do this at their linux-distros: run Gnome43 and KDE PLASMA at the same time together in their famous distros in bare metal not VM...
 
2 members found this post helpful.
Old 04-27-2023, 08:01 AM   #18
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by hazel View Post
I don't think it has ever been the purpose of Slackware to push users into doing anything. Other distros do that; Slack gives you freedom. A GRUB package exists but you don't have to use it if you don't like GRUB. And if we are to be pushed into using a particular bootloader, why not a particular init system as well? That's certainly how other distros treat their users.
Oh, yeah? And what does the Slackware installer by pushing in the front of unsuspectful user the liloconfig or eliloconfig configuration screens? This is not a software PUSH in the users mouth? Or in the case of LILO and ELILO case is just "justice" ?

With all respect, I for one I believe that we should end with those truly double standards and do what it should be done: a grub2config script to be made and the Slackware installer to show it to the users. I do not advocate the removal of elilo and lilo - but those who want them can find them easily, without being pushed on every installation.

Quote:
Originally Posted by hazel View Post
I don't know if it would even be possible to automatically convert upgrades of the kernel and kernel modules into parallel installations without greatly altering pkgtools and spoiling its beautiful simplicity. Certainly Debian distros always carry out a parallel installation for these packages, but then Debian has a very complex update manager.
Like I said, I have already invented something like this, and it's NOT a great altering of pkgtools. Basically, it's just about touching (yep, it's empty) a file: /install/slack-noupgrade when a package is made, then when the package is installed, a new particular line is inserted in the package record file. Finally, the upgradepkg is modified a bit, to check for this particular line in the package record file.

When this like is found, it does NOT remove the processed package, but in only installs (in parallel) the new one. So, instead of install-new/remove-old/install-new will do only install-new package.

That's all and it's not specific to the kernel packages.

The trick to have a consistent kernel package is another: the generic kernel and it's modules to be shipped in a single package, with saying goodbye to the huge kernel. This way, with a package containing both the kernel and its modules, any time you install or remove it, you can just call the update-grub script.

Quote:
Originally Posted by hazel View Post
Automatic GRUB updates though are easy to include. Just put a check for GRUB and a conditional GRUB update into the kernel installation script.
Exactly. And in the removal scripts too.
 
Old 04-27-2023, 08:03 AM   #19
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
I don't think it has ever been the purpose of Slackware to push users into doing anything. Other distros do that; Slack gives you freedom. A GRUB package exists but you don't have to use it if you don't like GRUB. And if we are to be pushed into using a particular bootloader, why not a particular init system as well? That's certainly how other distros treat their users.
Following other distros in their quest for profit and chain users into one specific solution seems like oppression to me.
Quote:
Originally Posted by hazel View Post
I don't know if it would even be possible to automatically convert upgrades of the kernel and kernel modules into parallel installations without greatly altering pkgtools and spoiling its beautiful simplicity.
I'm well used to compiling vfat/exfat and ext2/ext3/ext4 inside the kernel, so not sure why all the drama.
And a package doinst could simply do a 'vmlinuz' and /opt/vmlinuz-$VERSION and then move old 'vmlinuz' to /opt/vmlinuz-$VERSION.bak instead of relying on symlinks no?
But I'm fine with how it works right now, no complaints so I don't suggest nothing. It's probably up to those who have complaints to develop own solutions.
 
Old 04-27-2023, 08:05 AM   #20
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by colorpurple21859 View Post
I like the fact that slackware doesn't auto-update the grub.cfg with updates. I multiboot a few distos and use slackware grub as the main bootloader by editing the grub.cfg for a customized grub menu and I don't have to worry about my grub.cfg edits getting written over by an update.
In fact, the (auto-)generation of /boot/grub/grub.cfg is controlled on every word and line by the scripts from /etc/grub.d and /etc/default/grub

The recommended way (by the GRUB2 authors) for having a "customized grub menu" is to use those scripts and the associated config file.

In fact, you should NEVER edit /boot/grub/grub.cfg by hand, as it's said at its beginning.

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
#

Last edited by LuckyCyborg; 04-27-2023 at 08:08 AM.
 
Old 04-27-2023, 08:09 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
In fact, you should NEVER edit /boot/grub/grub.cfg by hand.
Yes, not in other distros because the grub.cfg gets overwritten with updates, unless you take extra steps to prevent it from happening, with slackware it isn't an issue, the only other disro where it isn't an issue if one can call it a distro is linux-from-scratch

Edit from the grub manual:
Quote:
6.4 Multi-boot manual config
Currently autogenerating config files for multi-boot environments depends on os-prober and has several shortcomings. Due to that it is disabled by default. It is advised to use the power of GRUB syntax and do it yourself. A possible configuration is detailed here, feel free to adjust to your needs.

Last edited by colorpurple21859; 04-27-2023 at 08:18 AM.
 
Old 04-27-2023, 08:27 AM   #22
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by colorpurple21859 View Post
Yes, not in other distros because the grub.cfg gets overwritten with updates, unless you take extra steps to prevent it from happening, with slackware it isn't an issue, the only other disro where it isn't an issue if one can call it a distro is linux-from-scratch

Edit from the grub manual:
With all respect, you do it wrong! Heck, did you ever read the famous file /etc/grub.d/40_custom ?

Code:
#!/bin/sh
exec tail -n +3 $0
# 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.
Yep, there you can add as much many custom entries as you like, all preserved when grub-mkconfig is executed.

Or even simpler, just put you custom entries into a file named /boot/grub/custom.cfg and it will be used as is, thanks to /etc/grub.d/41_custom script.
Code:
#!/bin/sh
cat <<EOF
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
EOF
And I do not talked about "os-prober" and any other auto-magic.

I for one, I do not believe in auto-magic, but on NOT making people to do mechanical repetitive tasks better done by a machine.

Generating an initrd based in a /etc/mkinitrd.conf file or looking in /boot directory for kernel files are things which could be done well by a machine, avoiding situation as described by OP.

Last edited by LuckyCyborg; 04-27-2023 at 08:38 AM.
 
Old 04-27-2023, 08:47 AM   #23
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by elcore View Post
Following other distros in their quest for profit and chain users into one specific solution seems like oppression to me.
But when that "one specific solution" is named LILO or ELILO, that's "freedom" , right?

What I love the Slackers' newspeak...

In fact, that's exactly the problem: that "one specific solution" proposed as bootloader by the Slackware installer to OP.

Do you really believe that the OP loves ELILO with passion? That he chosen ELILO out of love for it?

I don't think so, he installed ELILO just because this "one specific solution" was proposed by the Slackware installer.

Last edited by LuckyCyborg; 04-27-2023 at 08:56 AM.
 
Old 04-27-2023, 08:56 AM   #24
jazzi
Member
 
Registered: Mar 2006
Location: Tea Garden
Distribution: Slackware 15.0
Posts: 31

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Petri Kaukasoina View Post
I think the problem is that http://docs.slackware.com/slackware:beginners_guide suggests slackpkg without warning about kernel upgrades.
You are right, I did read it before upgrading and yes a warning there could be helpful.

This is a surprise to me however it makes me love Slackware more through all above kind advices, thank you all.

Quote:
Originally Posted by Petri Kaukasoina
Now you run 5.15.19 but don't have modules for it any longer. You would still need the vfat module to mount the efi partition. You could, for example, reinstall the original kernel-modules-5.15.19-x86_64-2.txz
I have downloaded this package however my whole /boot/efi/EFI directory is missing now which means no elilo.conf file, so I have a question: How did the computer boot successfully without elilo.conf file?

Oh I have a USB stick that has the Slackware 15.0 (kernel version is 5.15.19 too), I used this USB to install the system, can I boot into the computer from this USB stick and fix the problem?
 
Old 04-27-2023, 08:56 AM   #25
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
But when that "one specific solution" is named LILO or ELILO, that's "freedom" , right?

What I love the Slackers' newspeak...

In fact, that's exactly the problem: that "one specific solution" proposed as bootloader by the Slackware installer to OP.

Do you really believe that the OP loves ELILO with passion? That he chosen ELILO out of love for it?

I don't think so, he installed ELILO just because this "one specific solution" was proposed by the Slackware installer.
None of the packages, installer, kernel or otherwise, create dependency on LILO scripts.
GRUB2 includes exploitable scripts, which became a dependency of kernel packages in other distributions, creating a new attack vector where previously there were none.
So I disagree, LILO is optional part of the install process, and you're pushing (for few years now) to include remotely exploitable features.
 
1 members found this post helpful.
Old 04-27-2023, 08:59 AM   #26
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by jazzi View Post
How did the computer boot successfully without elilo.conf file?
The fact that you can't mount the /boot/efi partition, does not mean that that partition is empty. It isn't.

The files are there including that elilo.conf, so you can boot the system with the old kernel, just that they aren't accessible for you.
 
Old 04-27-2023, 09:06 AM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
With all respect, you do it wrong! Heck, did you ever read the famous file /etc/grub.d/40_custom ?
I hate when that happens.
Yes, I'm well aware of the the 40_custom and custom.cfg files.
 
Old 04-27-2023, 09:11 AM   #28
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Quote:
Originally Posted by elcore View Post
None of the packages, installer, kernel or otherwise, create dependency on LILO scripts.
And how the heck arrived the OP to install ELILO?

You don't see that he has no idea how it works, so his personal preference toward it is excluded?

My wild guess: because that ELILO configuration was proposed by the Slackware installer.

Quote:
Originally Posted by elcore View Post
GRUB2 includes exploitable scripts, which became a dependency of kernel packages in other distributions, creating a new attack vector where previously there were none.
So I disagree, LILO is optional part of the install process, and you're pushing (for few years now) to include remotely exploitable features.
Out of curiosity, you are kind to show me what parts of /etc/grub.d scripts or any other scripts included by GRUB2 have remotely exploitable features?

Unless you can show me to lines on scripts those exploits, what you say are "unconfirmed claims" to scare the uninformed people, gracious ignoring that there are people who can read Bash scripts. BTW, I speak Bash too.

Heck, those "remotely exploitable features" in Bash scripts, that's what I will call News...

Last edited by LuckyCyborg; 04-27-2023 at 09:14 AM.
 
Old 04-27-2023, 09:15 AM   #29
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
I used this USB to install the system, can I boot into the computer from this USB stick and fix the problem?
yes, if you updated the /boot/initrd.gz before rebooting, at the console mount the root partition to /mnt, mount the efi partition to /mnt/boot/efi, copy the generic kernel from /mnt/boot/ to /mnt/boot/efi/EFI/Slackware/vmlinuz and the initrd.gz from /mnt/boot/ to /mnt/boot/efi/EFI/Slackware/. If you didn't run mkinitrd before rebooting, you will need to chroot into the system from the usb to fix.

Last edited by colorpurple21859; 04-27-2023 at 09:25 AM.
 
1 members found this post helpful.
Old 04-27-2023, 09:53 AM   #30
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
And how the heck arrived the OP to install ELILO?

You don't see that he has no idea how it works, so his personal preference toward it is excluded?

My wild guess: because that ELILO configuration was proposed by the Slackware installer.



Out of curiosity, you are kind to show me what parts of /etc/grub.d scripts or any other scripts included by GRUB2 have remotely exploitable features?

Unless you can show me to lines on scripts those exploits, what you say are "unconfirmed claims" to scare the uninformed people, gracious ignoring that there are people who can read Bash scripts. BTW, I speak Bash too.

Heck, those "remotely exploitable features" in Bash scripts, that's what I will call News...
OK Captain Obvious, but he was given option not to install LILO or ELILO at all.
For all we know, he could've easily opted to chroot into install and setup a PLOP bootloader.
How is that forcing ELILO on him, when he selected ELILO by choice and installed it by choice?
But if the doinst.sh did run GRUB scripts while installing the kernel, it would no longer be his choice.
How do you not understand this? You only act Cpt. Obvious but are actually Lt. Roll in disguise.

And regarding the possible exploit, sure any script can create one but it doesn't mean the kernel package has to create one too.
 
  


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
[SOLVED] Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg glupa4e Slackware 12 01-05-2023 10:04 AM
can't boot huge kernel with elilo after 15.0 upgrade donflan Slackware 5 03-12-2022 10:58 AM
ELILO and Kernel Upgrade VisionIncision Slackware 7 07-11-2017 05:15 AM
[SOLVED] ELILO and kernel upgrade cgorac Slackware 3 01-26-2016 12:59 AM

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

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