LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   bedrock, added devuan strata, can't get kernel (https://www.linuxquestions.org/questions/bedrock-linux-118/bedrock-added-devuan-strata-cant-get-kernel-4175662795/)

jr_bob_dobbs 10-18-2019 09:16 PM

bedrock, added devuan strata, can't get kernel
 
I installed a Buildroot system. This is a very minimal Linux that is mostly just busybox. Nonetheless, it can get on-line (cable, not wifi) and it can run the bedrock installer script just fine. Note, a separate Linux manages the boot loader and this provides the kernel for the Buildroot (now bedrock) system, for now.

I then added a Devuan (fork of Debian with no systemd) strata, with the intent to eventually have Devuan provide its own initramdisk & kernel.

One problem: I can't find the kernel. There is a /lib/modules for that kernel, but no Devuan vmlinuz its boot dir. I tried several packages that should have had the kernel but I can't find it. I did install a kernel source package but honestly I'd rather use the already-compiled stock Devuan kernel.

My problem is, I do not know if this is a Devuan problem or a bedrock problem. Can I please get a clue? :p What I mean is, does a strata fetch bring in the kernel? Did Bedrock then eat it? I know i installed the kernel later but ... did Bedrock then eat it?

Thank you.

ParadigmComplex 10-19-2019 07:42 AM

Everything works as expected for me:

Code:

$ ls -la /boot
total 16K
drwxr-xr-x  3 root root 4.0K Oct 19 08:29 .
drwxr-xr-x 24 root root 4.0K Oct 19 08:29 ..
drwxr-xr-x  5 root root 4.0K Oct 19 08:29 grub
$ sudo brl fetch devuan >/dev/null 2>&1
$ sudo strat devuan apt install -y linux-image-amd64 >/dev/null 2>&1
$ strat devuan dpkg -l | awk '/linux-image-[0-9]/{print$2}'
linux-image-4.9.0-11-amd64
$ strat devuan dpkg -L | grep /boot/
/boot/System.map-4.9.0-11-amd64
/boot/config-4.9.0-11-amd64
/boot/vmlinuz-4.9.0-11-amd64
$ ls -la /boot/System.map-4.9.0-11-amd64 /boot/config-4.9.0-11-amd64 /boot/vmlinuz-4.9.0-11-amd64
-rw-r--r-- 1 root root 183K Sep 20 07:03 /boot/config-4.9.0-11-amd64
-rw-r--r-- 1 root root 3.1M Sep 20 07:03 /boot/System.map-4.9.0-11-amd64
-rw-r--r-- 1 root root 4.1M Sep 20 07:03 /boot/vmlinuz-4.9.0-11-amd64

Quote:

Originally Posted by jr_bob_dobbs (Post 6048394)
does a strata fetch bring in the kernel?

`brl fetch` tries to bring in just enough for the user to bootstrap whatever else they want. For most distros this is usually just the package manager, its explicit and implicit dependencies, and locale stuff. If users want anything else - like a kernel - they're expected to use the newly available package manager to install it.

`brl fetch` should not bring a kernel.

Quote:

Originally Posted by jr_bob_dobbs (Post 6048394)
I tried several packages that should have had the kernel but I can't find it.

Can you provide exactly what you did to install devuan's kernel and check if devuan's kernel is installed?

jr_bob_dobbs 10-19-2019 09:16 AM

Quote:

Originally Posted by ParadigmComplex (Post 6048516)
`brl fetch` should not bring a kernel.

Understood. This helps reduce my confusion.

Quote:

Can you provide exactly what you did to install devuan's kernel and check if devuan's kernel is installed?
At this point, I can't, so I'll have to retract my question. Sorry.

Thank you for the reply.

I'll have to do a fresh install of Devuan in a different way, then when that is working and stable, *then* I'll bedrock it.

I think the lession I am learning here is that Bedrock cannot eliminate the need to actually learn how things are done within each distro.

ParadigmComplex 10-19-2019 10:09 AM

Quote:

Originally Posted by jr_bob_dobbs (Post 6048544)
At this point, I can't, so I'll have to retract my question. Sorry.

Thank you for the reply.

No worries, happy to help.

Quote:

Originally Posted by jr_bob_dobbs (Post 6048544)
I'll have to do a fresh install of Devuan in a different way, then when that is working and stable, *then* I'll bedrock it.

That's certainly an option and if you think that's best for you you're welcome to it. However, instead you could follow the steps I provided earlier to confirm it works for me. You can probably just `brl remove devuan` and try again. The way Bedrock segregates things into strata makes it really easy to manipulate the system like this and greatly reduces the need for fresh installs.

Quote:

Originally Posted by jr_bob_dobbs (Post 6048544)
I think the lession I am learning here is that Bedrock cannot eliminate the need to actually learn how things are done within each distro.

This is absolutely is the case. Bedrock is more about making stuff from other distros available than abstracting them. At the end of the day it's the software from all the other distros on your system that are actually doing things you need to understand.

The notable exception is pmm which should help a bit with this specific workflow once it's ready. You'll be able to query it for things like "which <stratum>/<package-manager> packages provide `/boot/*vmlinu*` files" without really needing to know the package manager's specific syntax. However, there could definitely be quirky distro- or package-manager-specific things which would keep this from working universally.

jr_bob_dobbs 10-20-2019 07:30 AM

Quote:

Originally Posted by ParadigmComplex (Post 6048558)
No worries, happy to help.
However, instead you could follow the steps I provided earlier to confirm it works for me.

Good point. That worked. Thank you. :)

ParadigmComplex 10-20-2019 07:33 AM

You're welcome


All times are GMT -5. The time now is 10:49 PM.