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 09-04-2023, 08:05 PM   #31
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561

Quote:
Originally Posted by enorbet View Post
I wasn't upset before but now I am a wee bit because you are misrepresenting what I have written.
I'm sorry that you're upset... but these are your words:
Quote:
Originally Posted by enorbet View Post
For most people all that's required to eliminate the "need" is to build a kernel
Quote:
Originally Posted by enorbet View Post
That 2 hours ... is preferable to having to mess with ... an initrd
Quote:
Originally Posted by enorbet View Post
I think there is no comparison to having to deal with initrd.
If not for the meaning I took, what were you trying to say?
Quote:
Originally Posted by chrisretusn View Post
We all do things a bit differently.
Yeah, because Slackware gives us the ability. Try having this discussion elsewhere!
 
Old 09-04-2023, 08:19 PM   #32
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by chrisretusn View Post
We all do things a bit differently.
Quote:
Originally Posted by rkelsen View Post
Yeah, because Slackware gives us the ability. Try having this discussion elsewhere!
What is this supposed to mean. This is a thread about initrd. Why single out my post? Did you some how think I was attacking you? I wasn't. I was simply following up on other post in this thread.

Last edited by chrisretusn; 09-04-2023 at 08:20 PM.
 
Old 09-04-2023, 08:26 PM   #33
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by chrisretusn View Post
What is this supposed to mean.
Exactly what it says, and nothing more.
Quote:
Originally Posted by chrisretusn View Post
Did you some how think I was attacking you?
No, not at all...
 
Old 09-04-2023, 09:45 PM   #34
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
I suppose I was remiss in not explaining right from the jump that I'm comparing what might amount to a 2 hour build (that I'm determined to do anyway) once in a year's time, and within a kernel version easily and quickly trimmed in time ever after, to what can involve more accumulated time and aggravation if and when I encounter any problems with generating, using, or updating initrd. I simply prefer to take the few seconds to add the file system support that allows me to forgo initrd altogether as a kind of preventative maintenance. It's a nice relief that I never have to even think about it again.

I don't see any call for smugness and conflict.
 
Old 09-04-2023, 10:01 PM   #35
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,032

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Quote:
Originally Posted by enorbet View Post
I suppose I was remiss in not explaining right from the jump that I'm comparing what might amount to a 2 hour build (that I'm determined to do anyway) once in a year's time, and within a kernel version easily and quickly trimmed in time ever after, to what can involve more accumulated time and aggravation if and when I encounter any problems with generating, using, or updating initrd. I simply prefer to take the few seconds to add the file system support that allows me to forgo initrd altogether as a kind of preventative maintenance. It's a nice relief that I never have to even think about it again.

I don't see any call for smugness and conflict.
You know very well that maintaining a correct initrd is actually the job of some properly made scripts. LuckyCyborg explained in detail how it can be done even in Slackware and you jumped at his neck in gang.

But I see that you gentlemen manage to make a controversial thread about initrds even without his help. The proof is this very thread.

I don't understand why you're beating around the bush about a task that should be solved by some Slackware scripts that aren't even that complicated. Maybe you find a meaning of life in doing the work of some mundane scripts?

Last edited by ZhaoLin1457; 09-04-2023 at 10:08 PM.
 
2 members found this post helpful.
Old 09-04-2023, 10:54 PM   #36
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by rkelsen View Post
Exactly what it says, and nothing more.
Well then. my only conclusion to "Try having this discussion elsewhere!" is that you considered my post to be off-topic. Even though there are other similar post in this thread. Or... maybe it was the "We all do things a bit differently.", a true statement, perhaps that was off-topic.

I was just showing how I create my initrd and to show appreciation to @Petri Kaukasoina for putting the idea in my head.
 
Old 09-04-2023, 11:26 PM   #37
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by chrisretusn View Post
Well then. my only conclusion to "Try having this discussion elsewhere!" is that you considered my post to be off-topic.
No, not at all... although I can see why you interpreted it that way.

The intention of that statement was to illustrate the point that you cannot have a discussion like this on other distro forums because most of them don't offer the same flexibility as Slackware.
 
1 members found this post helpful.
Old 09-05-2023, 12:22 AM   #38
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
In the early 2000's, I used to build my own kernels because a standard distro kernel took forever to boot on my hardware. Of course the build took time too but after that booting was fast. Also the configuration for the build only had to be done once. Every subsequent build could be done by just using oldconfig, then leaving the actual build to chunter away while I did something else.

But now that I am old and have 4 cores and 4 GB, I don't bother any more. I just use Patrick's kernel and his lovely initrd generation script.
 
6 members found this post helpful.
Old 09-05-2023, 12:24 AM   #39
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by rkelsen View Post
No, not at all... although I can see why you interpreted it that way.

The intention of that statement was to illustrate the point that you cannot have a discussion like this on other distro forums because most of them don't offer the same flexibility as Slackware.
Ah.. good point, my misunderstanding then. Thanks for the explanation. Glad I asked.
 
Old 09-05-2023, 01:09 AM   #40
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
Quote:
Originally Posted by ZhaoLin1457 View Post
You know very well that maintaining a correct initrd is actually the job of some properly made scripts. LuckyCyborg explained in detail how it can be done even in Slackware and you jumped at his neck in gang.
Are you accusing me specifically or is "you" meant to be general and plural?

Quote:
Originally Posted by ZhaoLin1457 View Post
I don't understand why you're beating around the bush about a task that should be solved by some Slackware scripts that aren't even that complicated. Maybe you find a meaning of life in doing the work of some mundane scripts?
What part of 2 seconds during a task I am already going to do for vastly more pressing reasons (Studio work benefits from a realtime kernel among other options) didn't you get? Why bother with a script when a single check box avoids the need entirely?
 
Old 09-05-2023, 10:11 AM   #41
the3dfxdude
Member
 
Registered: May 2007
Posts: 736

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Quote:
Originally Posted by rkelsen View Post
I'm sorry that you're upset... but these are your words:

Quote:
Originally Posted by enorbet View Post
For most people all that's required to eliminate the "need" is to build a kernel
Quote:
Originally Posted by enorbet View Post
That 2 hours ... is preferable to having to mess with ... an initrd
Quote:
Originally Posted by enorbet View Post
I think there is no comparison to having to deal with initrd.

If not for the meaning I took, what were you trying to say?
You chopped up messages into single line quotes that you strung a specific way instead of just reading what he said word for word. This distorts what he said. enorbet said he compiles a kernel anyway. Why is this important? Well for someone who comes from Slackware 7, they probably are aware of selecting kernels or compiling kernels. It's just what we did. If you compile a kernel anyway, which is what many did, you are selecting the drivers to make the system boot. Selecting the same drivers when running mkinitrd is moot. What do I take away from his message? If you come from Slackware 7 and reading now about initrd, you don't have to worry about it -- you can handle it already like you did before. It's nice to see this perspective is still present, to me who has been using initrd for a little while. Don't give people a hard time that have a different workflow.
 
Old 09-05-2023, 11:51 AM   #42
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Just observing that it appears that no one in this thread is using a 32-bit system, where it is harder to hack on /etc/mkinitrd.conf :-)
I have never been a fan of /etc/mkinitrd.conf. I have always preferred to do an initial manual run of mkinitrd on a fresh install, then work with /boot/initrd-tree/command_line.
 
Old 09-05-2023, 07:01 PM   #43
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by the3dfxdude View Post
You chopped up messages into single line quotes that you strung a specific way instead of just reading what he said word for word. This distorts what he said.
Well, I may have removed excess verbiage, but I was trying to be quite careful to not change his meaning. His posts are still there, so you and future readers can easily refer back to them.
Quote:
Originally Posted by the3dfxdude View Post
enorbet said he compiles a kernel anyway.
Yes, that point is well understood. For some historical context, enorbet quite often chimes in with this old chestnut when the subject of initrd is raised. I'll not repeat his reasons. They are openly disclosed in his posts above. Suffice it to say, that his opinion of initrds is well known around here.
Quote:
Originally Posted by the3dfxdude View Post
Why is this important? Well for someone who comes from Slackware 7, they probably are aware of selecting kernels or compiling kernels. It's just what we did.
I know, because I was there too. The problem is that modern process of compiling a kernel is substantially different to the process in Slackware 7.0, and the pay-off is not near the same. There are few reasons to compile a kernel these days, and unless one has specific needs (say low-latency for audio recording ), it is largely a waste of time and effort. Recommending it as a way to avoid building an initrd in somewhat counter-intuitive, since the process of compiling a kernel is the more difficult and time-consuming option these days.
Quote:
Originally Posted by the3dfxdude View Post
What do I take away from his message? If you come from Slackware 7 and reading now about initrd, you don't have to worry about it -- you can handle it already like you did before.
Except for the fact that the process of compiling a kernel is a non-trivial exercise these days with insufficient payoff to make it worth spending one's time on. Of course you're welcome to disagree with that statement.
Quote:
Originally Posted by the3dfxdude View Post
It's nice to see this perspective is still present, to me who has been using initrd for a little while. Don't give people a hard time that have a different workflow.
Hey, I don't disagree with you there. It's always good to have differing opinions and perspectives.

As I pointed out above, we in the Slackware community are lucky that we can have these types of conversations because users of other distros certainly cannot.
 
1 members found this post helpful.
Old 09-05-2023, 07:04 PM   #44
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by allend View Post
Just observing that it appears that no one in this thread is using a 32-bit system, where it is harder to hack on /etc/mkinitrd.conf :-)
Well that's a new one.

How is it more difficult to edit a text file on a 32 bit system?
 
Old 09-06-2023, 12:45 AM   #45
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
That was more a comment on the suggestions.
Mugging boot and packages directories with
Quote:
bash-5.1$ ls -R boot packages
boot:
vmlinuz-generic-smp@ vmlinuz-generic-smp-5.15.117-smp vmlinuz-generic-smp-5.15.19-smp vmlinuz-generic-testing@

packages:
kernel-modules-smp-5.15.117_smp-i686-1 kernel-modules-smp-5.15.19_smp-i686-2
Code:
kmod=`( cd packages/ ; ls -v kernel-modules* ) | awk -F- '{printf"%s:", $3}' |sed 's/:$//'` && echo $kmod
gives 'smp:smp'.

Code:
KERNEL_VERSION=$(cd boot; echo vmlinuz-generic-*|sed 's/vmlinuz-generic-//g'|sed 's/ /:/g') && echo $KERNEL_VERSION
gives 'smp:smp-5.15.117-smp:smp-5.15.19-smp:testing'.

Code:
 KERNEL_VERSION=$(cd boot; readlink vmlinuz-generic-[swt]* | cut -d- -f3 | sort | sed ':a;N;$!ba;s/\n/:/g') && echo $KERNEL_VERSION
gives 'smp:smp'

Querying the source tree also has problems with kernel package naming.

These are not problems that cannot be addressed on 32-bit systems. I just wanted to caution about suggestions that will not work on 32-bit systems. Last I read, it is still intended to support 32-bit in Slackware 15.1.

After all, some people consider users need to be protected from shooting themselves in the foot.

Last edited by allend; 09-06-2023 at 12:47 AM.
 
1 members found this post helpful.
  


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
to initrd or not to initrd... svu Slackware 34 01-18-2023 02:09 AM
os-initrd-mgr -new option to slim down the OS InitRD drmozes Slackware - ARM 2 05-26-2022 10:25 AM
WHen I rebooted my laptop it is stuck at "initrd /boot/initrd.img Shadowmeph Linux - Newbie 2 03-07-2014 03:03 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM

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

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