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.
Get slackpkg to run lilo or eliloconfig after a Kernel Update so there will no be kernel panic if the laptop loses power or user forgetting to run it.
Before kernel upgrade, backup the running kernel and modules with a local script.
Afer kernel upgrade, overwrite vmlinuz* with vmlinuz, System.map* with System.map, and config* with config.
So your user won't have to run lilo, eliloconfig, or grub mkconfig, at all.
I've used for many years. Fully tested procedure.
Please consider, before asking package manager to run script which runs script that runs script to work around a non issue.
Security Fixes
* Previously, TLS socket objects could be destroyed prematurely, which triggered assertion failures in
named instances serving DNS-over-HTTPS (DoH) clients. This has been fixed.
* ISC would like to thank Thomas Amgarten from arcade solutions ag for bringing this vulnerability to
our attention. (CVE-2022-1183) [GL #3216]
Before kernel upgrade, backup the running kernel and modules with a local script.
...
Please consider, before asking package manager to run script which runs script that runs script to work around a non issue.
So, each user should create their own script to manage kernel upgrades? Why even have slackpkg or pkgtool in the system if users can create their own solutions to manage the system?
Note: this isn't to say that slackpkg should or should not change its process for kernel upgrades, but asking for a feature in Slackware shouldn't be shot back with "don't ask for that when you can create your own unique solution".
So, each user should create their own script to manage kernel upgrades? Why even have slackpkg or pkgtool in the system if users can create their own solutions to manage the system?
IMO, kernel upgrades are fine, without additional management features.
Quote:
Originally Posted by bassmadrigal
Note: this isn't to say that slackpkg should or should not change its process for kernel upgrades, but asking for a feature in Slackware shouldn't be shot back with "don't ask for that when you can create your own unique solution".
It's not an unique solution, and it's not package manager job to manage boot sectors.
IMO, kernel upgrades are fine, without additional management features.
As I said, I wasn't discussing the merits of adding that support to slackpkg, but instead your suggestion to build a custom solution for a problem when instead a standardized solution could exist for all of Slackware.
Quote:
Originally Posted by elcore
It's not an unique solution
It would be a unique solution to them. Each user would need to create their own "local script" to do this process. Each user would be reinventing the wheel when some other users already have one created. Is it a bad idea to consolidate the ideas into a script that is part of Slackware and possibly include that functionality into slackpkg?
Quote:
Originally Posted by elcore
it's not package manager job to manage boot sectors.
Some could argue that it is the package manager's job to ensure packages are installed properly for all the system to function. For some, that would include ensuring the system is able to boot after a kernel upgrade.
Personally, I don't care if the package manager supports that as I'm usually running my own kernel (I always blacklist all the kernel packages from slackpkg), but I can understand why some would want slackpkg to fully update the system and allow rebooting back into an updated system without any additional work on the user's end.
It seemed a little calloused to shut down the conversation and just tell the user to build their own custom solution.
Get slackpkg to run lilo or eliloconfig after a Kernel Update so there will no be kernel panic if the laptop loses power or user forgetting to run it.
In /etc/slackpkg/blacklist, I use
Code:
#
# Automated upgrade of kernel packages may not be wanted in some situations;
# uncomment the lines below if that fits your circumstances, but note that
# kernel-headers should *not* be blacklisted:
#
kernel-generic.*
kernel-huge.*
kernel-modules.*
kernel-source
and just manually install new kernels. I haven't got to remove the old ones yet, though:
your suggestion to build a custom solution for a problem when instead a standardized solution could exist
It was not me who suggested change. I'm fine with how it works.
And I'm usually not the one who complains about scripts calling other scripts.
I just said that 1 script can do it easily, instead of package manager calling automatically a bunch of other scripts.
And that it should be considered before working around the issue which isn't really a software issue.
Quote:
Originally Posted by bassmadrigal
Each user would need to create their own "local script" to do this process.
Only the users who require this handholding process may want it, but that leaves each user with potential bugs.
Quote:
Originally Posted by bassmadrigal
Some could argue that it is the package manager's job to ensure packages are installed properly for all the system to function.
By that definition, it's also package manager job to handle BIOS.
Anyway, boot sectors aren't packages, and package distribution software should not tamper with them for security reasons.
So it'd have to be implemented just like in cfdisk and the installer, where the user input is required.
How does that solve issues which prompted the suggestion? It does not, it'd still require user input just like manual eliloconfig and others.
Suggestion, the way I see it, requires a slackpg function which fixes (1) a power outage and (2) the user. It's not something that's fixable.
Of course there's people like debian council who think it is, but it's offtopic here since Slackware generally does not hold users' hands.
Feel free to adapt/modify it for use in genuine Slackware. For me as long as no Slint user complains it's good enough as is.
Well, I created that patch myself today against the newest Slackware mkinitrd package's init trying to do as few changes as possible, keeping the style. :-)
Last edited by opty; 05-19-2022 at 04:47 AM.
Reason: Clarification.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.