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 02-18-2022, 07:29 AM   #211
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404

Quote:
Originally Posted by hazel View Post
That's why I never upgrade a kernel. I install it alongside the existing one and then remove the old one when I have checked that the new one boots. Suse may do that for you automatically (istr Debian distros do the same) but there's nothing to stop you doing it in Slackware. You just need to use pkgtools and blacklist the kernel in slackpkg.

The same with kernel modules. I once tried experimentally upgrading the modules with slackpkg and discovered that it deleted the earlier set, so the old kernel wouldn't boot properly any more. And I hadn't yet installed the new kernel! I had to go into chroot to fix things; fortunately I still had the old modules package in my root directory.

It's not unslacklike to do this. The Slackware way is to do it yourself if you want it done but not have it done automatically for everybody, whether they've asked for it or not.
So, we should do a complicated and errors prone flow to "upgrade" the kernel package just because the Slackware packages are perfect and the lack of preservation of previous kernel is perfect?

I love Slackware, but I do not think it or its kernel packages are perfect. In fact, I believe that nothing in this world is perfect, and always is room to improve. Including the Slackware itself. After all, it's not the Holly Bible.

You guys ever thought about how complicated would be for Slackware to preserve the previous kernels while upgrading their packages?

I know, I know, it's unthinkable, but there's a simple way:

The files from the kernel packages are versioned, so if we put them in an "incoming" directory to have them out of the scope of removepkg, we can move them in the proper place with the post install script.

Imagine that we have kernel-generic-5.15.19 and we upgrade to kernel-generic-5.15.20 while using this method. The files from the new package are located into /boot/incoming as bellow:
Code:
/boot/incoming/System.map-generic-5.15.20
/boot/incoming/config-generic-5.15.20.x64
/boot/incoming/vmlinuz-generic-5.15.20
Because also (supposedly) the 5.15.19 files uses the same incoming method, when we upgrade the package, those incoming files are moved to /boot BUT the 5.15.19 are not removed because they are out of scope of installpkg - does not exists in this place in the tarball.

Now, the doinst.sh does the symlinks and we can isntruct it to look also for the previous kernel files, then to link them with the prefix "old-" obtaining something like:

Code:
/boot/System.map                  -> symlink to System.map-generic-5.15.20
/boot/System.map-generic-5.15.19
/boot/System.map-generic-5.15.20
/boot/config
/boot/config-generic-5.15.19.x64
/boot/config-generic-5.15.20.x64
/boot/old-vmlinuz-generic         -> symlink to vmlinuz-generic-5.15.19
/boot/vmlinuz                     -> symlink to vmlinuz-generic-5.15.20
/boot/vmlinuz-generic             -> symlink to vmlinuz-generic-5.15.20
/boot/vmlinuz-generic-5.15.19
/boot/vmlinuz-generic-5.15.20
For the kernel modules, no further doinst.sh processing is required, out of an "incoming" method.

This is enough to have ALWAYS the previous kernel preserved without stunts and even running LILO you can have always the previous kernel at disposition, on Slackware.

There is NOT about spoon feeding, or dependency resolution or automated graphical tools like in other distros.

It's all about HOW the kernels are packaged and this way described by me can avoid many, many boot incidents happening with the Slackware installations. By user mistakes, of course.

As homework, please explain me why and/or how this previous kernel preservation method is unSlackware. In detail.

PS. If you do not like the manual removal of the old kernels, there could be always invented a script ran by cron to automatically remove the old kernels and to leave only the latest (or N ny configuration) old kernel(s). Just like the openSUSE do.

Last edited by LuckyCyborg; 02-18-2022 at 02:43 PM.
 
3 members found this post helpful.
Old 02-18-2022, 07:38 AM   #212
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by hazel View Post
That's why I never upgrade a kernel. I install it alongside the existing one and then remove the old one when I have checked that the new one boots.
There are several solutions to this issue.

When the first kernel updates occur, I keep the original release kernel and modules from the install ISO on the system but remove them from package-management by removing the kernel-generic and kernel-modules files from /var/lib/pkgtools/packages.

After that, I can use upgradepkg --install-new on any newer kernel-generic and kernel-modules packages that come along safe in the knowledge that I have the option of booting the originally shipped kernel/modules as a failsafe.

A side advantage to this approach is that should the bootloader get screwed up, one can still boot from the install ISO with root= and it will find its matching modules.
 
1 members found this post helpful.
Old 02-18-2022, 08:45 AM   #213
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by SCerovec View Post
Need i quote Mark Twain about statistics here?

...
You could, but it might be missing the point. polls in general are bogus. Unless you can query every individual in the target demographic every conclusion you come to will be an approximation. However, but I was pointing out was not an issue with the poll itself, but rather how the poll was used to push an old Slackware stereotype. One that younger users (such as myself) are not huge fans of..

The reviewer clearly wanted to say that slackware is longer relevant in today's world. He even used a poll that essentially proves it by saying that users pre-2002 make up the largest piece of the userbase.

However... upon closer inspection of the numbers you can see that his percentages are calculated against a bunch of non-slackware users. Go deeper, you find that they are using 2-year increments to break down the userbase causing those users who are post-2002 to be under represented. This use of a poll to prove a point is not about the value of polling data, but rather about the misuse of polling data to support misinformation. The ultimate result makes newer/younger users look like we have a significantly smaller piece of the pie than we really do.


And his question also says
Quote:
Are you a Slackware user? If so, we'd love to hear when you
but then proceeds to include over 800 votes from people who have never used Slackware. Even IF the data is accurate, framing it in this way lands firmly within the world of misinformation, and is a breach of the user's trust in Distrowatch.

Last edited by Pithium; 02-18-2022 at 08:56 AM. Reason: over 800... not 1000, oops :D
 
3 members found this post helpful.
Old 02-18-2022, 09:45 AM   #214
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Two year increments are used throughout, but the main flaw is the "never tried" option.

The sample size is of course too small. Taking the figures as they are, at face value, as of writing 1289 have tried Slackware, 877 have not. Not useful data.

Looking at the figures for those who tried it, ignoring %:

1993-1995: 153 (7%)
1996-1998: 506 (24%)
1999-2001: 125 (6%)
2002-2004: 142 (7%)
2005-2007: 72 (3%)
2008-2010: 74 (3%)
2011-2013: 46 (2%)
2014-2016: 55 (3%)
2017-2019: 37 (2%)
2020-Now: 49 (2%)

We see that Slackware apparently "took off" a few years after launch, in 1996 - 1998 and then levelled off...

Almost like every other Linux distribution there is / ever was. One notable difference is that compared to many, Slackware is still going.

Last edited by cynwulf; 02-18-2022 at 09:47 AM.
 
Old 02-18-2022, 09:53 AM   #215
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Cool

Quote:
Originally Posted by Mechanikx View Post
What do you think of Void?
I really like it a lot. I've used it a few times on bare metal and in a VM. It has a minimalist design, and it's robust. Their unique package manager is interesting.
 
1 members found this post helpful.
Old 02-18-2022, 03:35 PM   #216
Trihexagonal
Member
 
Registered: Jul 2017
Posts: 362
Blog Entries: 1

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by FTIO View Post
Anyway, eventually Pat will have to cave to 'The Borg', since more and more apps are demanding a system have systemd or it will not run/work, and that's when I finally put my nose to the grindstone and try to get a BSD working and learn it in the hopes that I'll live a little while longer and be able to use it knowing Winblows mindsets aren't taking it over also...
From the way people in this thread describe the technical aspects of SOP with Slack I doubt you'd have much of a problem getting a FreeBSD machine running or maintaining it. No more than I would getting one of yours running anyway.

I've got a Beginners Tutorial with a target audience of someone who has never used the command line that takes you from installation of the Base System to a Fluxbox desktop using ports to compile third party programs. I provide examples of System and Security files that need to be edited once you hit the desktop along with a pf ruleset for general desktop use and one for people who use cupsd.

https://trihexagonal.org/

You can skip past the hand-holding and substitute pkg to do in 2-3 hours what might take me close to 24 hours to do compiling ports on the same machine. The experience you already have would make using ports easier, and that's good experience to have people who've only used pkg miss out on.


Quote:
Originally Posted by FTIO View Post
I figure I can maybe keep this old bod' going to 70, heh, before I can't see a keyboard anyway or the screen hardly, lol.
If you can still see the keyboard and the screen you're doing great.


I've got a Sony Vaio offline running FreeBSD 11.2-with XMMS playing music for me right now. They've removed it from the ports tree since then so I keep this version just to have XMMS.

Last edited by Trihexagonal; 02-18-2022 at 03:36 PM.
 
3 members found this post helpful.
Old 02-18-2022, 04:44 PM   #217
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Quote:
Originally Posted by hazel View Post
That's why I never upgrade a kernel. I install it alongside the existing one and then remove the old one when I have checked that the new one boots.
Indeed. I run -current but I have a 'safe' kernel that I compile by hand that trails behind the stock kernel by a few point releases. For example at the moment:

Code:
andrew@ilium~$ cat /etc/lilo.conf | grep image
image = /boot/vmlinuz-5.16.7-ads
image = /boot/vmlinuz-generic-5.16.9
image = /boot/vmlinuz-huge-5.16.9
andrew@ilium~$
Always best to be cautious and take some responsibility for your own system...
 
Old 02-18-2022, 05:44 PM   #218
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
The reviewer probably [removed]
 
Old 02-18-2022, 06:03 PM   #219
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by slackass View Post
The reviewer probably [removed]
An ad hominem attack is a logical fallacy, that is, when you attack a person or their character it does not invalidate their argument or point of view.
Your comment is not helpful.
 
13 members found this post helpful.
Old 02-19-2022, 08:02 AM   #220
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Regarding slackpkg, kernel, and kernel-modules upgrades: I always custom build a kernel that does not use an initrd. It makes little or no difference if I use a config from Generic and build it up, or from Huge and cut it down. I blacklist all kernel options in slackpkg excepting kernel-modules. In 20+ years I have never had a working kernel fail to boot because of a modules upgrade. I suspect this is largely from not using initrd as well as no auto updates to the kernel(s).
 
3 members found this post helpful.
Old 02-19-2022, 08:46 AM   #221
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,762

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
slackass,
Per the rules,
Do not post if you do not have anything constructive to say in the post.
 
4 members found this post helpful.
Old 02-19-2022, 09:14 AM   #222
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by enorbet View Post
Regarding slackpkg, kernel, and kernel-modules upgrades: I always custom build a kernel that does not use an initrd.
I used to do that years ago when I had only 250 MB of RAM. I got so sick of watching those dots crawling across the screen as the Debian production kernel loaded. My custom kernel took a long time to build, but I only had to build it once and it loaded in seconds. But as I got more sophisticated hardware, the effort seemed less and less worthwhile. Nowadays I only build a kernel when I have to. That basically means LFS since I don't use Crux any more.

I got a bit of a jolt when I first installed Slackware and found that I needed to create my own initrd to go with the generic kernel. I could have built a kernel myself or used the huge one but I decided it was safer to go by the book.Fortunately I found a lovely script by Patrick that scanned my hardware and told me exactly what options I needed to use. I remember thinking then, "What a nice friendly system this is!".
 
5 members found this post helpful.
Old 02-20-2022, 01:47 PM   #223
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Agreed, hazel at least for some of my "normal" PCs. My laptop which I rarely ever use I just allow generic + initrd and it works fine. The new geninitrd script is indeed quite lovely but my Main box is tweaked for extreme performance and low latency, mainly for multimedia, gaming and DAW work so the gain from building in exact CPU options and high performance scheduling and timing is an important and substantial boost.

I don't really care much about boot times since all of my systems (excepting Windows) boot to usable Desktop in under 20 seconds. If I reset my main 15.0 system inittab to default to runlevel 4 it takes about 13 seconds. What I do care about is low maintenance, low automation and high performance. If I ran only one system on this box the maintenance per month would be a complete bore. Presently I have over 9 active, bootable systems for various reasons, some just to experience what is possible.

Even building new kernels is well under a half hour (possibly as little as 15 minutes as I haven't timed it exactly in ages... it's just fast enough to be of no consequence or concern) on this i5-10600K with M.2 NVME SSD as root ever since I learned about the "-jn" switch for "make". Comparing benchmarks this machine routinely competes with i9 machines running stock kernels (the i5 is overclocked +22% from base speed) . On the very same same machine Slackware 15.0 with the tweaked kernel benchmarks at least 25% faster and in some cases as much as 40% faster than in Win 10, even if the benchmark is on an NTFS partition so both can use the very same one, somewhat hindering Slackware which would operate much faster on XFS or ZFS.

So I totally agree that the days of having to work hard to get hardware working and building kernels that fit on a floppy are long gone. Linux in general and even Slackware in particular has definitely evolved into an extremely friendly system as you've noted while not losing it's power user base. That said, there is still substantial advantage to "deep diving".

Last edited by enorbet; 02-20-2022 at 01:49 PM.
 
3 members found this post helpful.
Old 02-21-2022, 01:40 PM   #224
amikoyan
Member
 
Registered: Mar 2021
Distribution: Slackware64 -current
Posts: 318

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by Trihexagonal View Post

I've got a Beginners Tutorial with a target audience of someone who has never used the command line that takes you from installation of the Base System to a Fluxbox desktop using ports to compile third party programs. I provide examples of System and Security files that need to be edited once you hit the desktop along with a pf ruleset for general desktop use and one for people who use cupsd.

https://trihexagonal.org/
The Beginners Tutorial looks good, put together with real attention to detail and care. I had a quick look through it and I was interested in the pf ruleset - it has a really simple syntax - very intuitive and easy to understand. When I get time I will have a more detailed look at your guide and give installing FreeBSD a go.
 
  


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
LXer: DistroWatch Weekly: Look at PC-BSD 1.5, PCe17OS, Mining DistroWatch logs LXer Syndicated Linux News 0 03-17-2008 06:50 AM
LXer: DistroWatch Weekly: First look at PC-BSD 1.4, Mandriva closes Club, DistroWatch LXer Syndicated Linux News 0 10-01-2007 05:40 AM
LXer: DistroWatch Weekly: DistroWatch in 2006, MEPIS, Fedora, Debian, FreeBSD and RHEL release updates LXer Syndicated Linux News 0 01-01-2007 03:54 AM
LXer: DistroWatch Weekly: Mandriva Linux 2007, Extracting package lists, DistroWatch in Middle East LXer Syndicated Linux News 0 09-18-2006 05:21 AM
LXer: DistroWatch Weekly: DistroWatch meets Mark Shuttleworth LXer Syndicated Linux News 0 02-20-2006 03:16 AM

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

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