LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 07-25-2021, 08:23 AM   #1
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Rep: Reputation: Disabled
Can't boot with artix 5.13.4-artix1-1 kernel and solus strata


Steps to reproduce:
1. Install artix linux (I used artix-plasma-runit-20210426-x86_64.iso), hijack it, and reboot.
2. Add solus strata and reboot
First issue, no grub theme, but possible to boot. screen 1
3. Update artix kernel to 5.13.4-artix1-1 and install e.g. zstd package with eopkg and reboot
Not possible to boot. screen 2a screen 2b
Probably it is caused by depmod trigger during eopkg it zstd
 
Old 07-26-2021, 05:06 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
What Bedrock release are you on?
 
Old 07-26-2021, 05:30 AM   #3
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
0.7.21
 
Old 07-26-2021, 05:58 AM   #4
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
The GRUB theme issue indicated in your screen 1 isn't surprising. From GRUB's point of view, the local stratum is `bedrock`, which doesn't have `/usr/share/grub/themes/artix`. I haven't fully thought it through, but I suspect symlinking /bedrock/strata/bedrock/usr/share/grub to /bedrock/strata/hijacked/usr/share/grub might will make this just-work for most people most of the time, although it'll break if someone ever changes their bootloader stratum. If I can reproduce the issue I'll experiment with it and if nothing else document the situation.

What's shown in screen 2 looks like Bedrock can't modprobe necessary modules. I knew some distros were switching to zstd compression with Linux 5.13.X and released 0.7.21 explicitly with the aim of adding zstd-compressed module support. My hope was that you were on 0.7.20, and the issue would be trivially resolved with an upgrade. I'll see if I can reproduce this and dig into it when I get the chance.
 
Old 07-26-2021, 07:08 AM   #5
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
I was able to reproduce the grub theme issue. My proposed fix does seem to work. I'll try to queue it up for 0.7.22beta2 and document the need to manually adjust the symlink if one changes which stratum provides grub.

I was also able to reproduce the module issue. I think you're right, it's depmod. Immediately after `eopkg it zstd`, I found `modules.dep` emptied. My first thought is to try to pin Bedrock's zstd-aware depmod and get it to override Solus' (and everyone else's); I'll give that a try in my next free moment. If that doesn't do it, I'll have to think about this one for a while.
 
Old 07-26-2021, 07:17 AM   #6
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
I noticed if I reinstall fonconfig package which is installed during create solus strata causes the same problem.
screen 3a
screen 3b
Even install wget package breaks booting process too.
Seems it is not possible use solus strata with hijacked artix.
 
Old 07-26-2021, 07:26 AM   #7
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ParadigmComplex View Post
I'll give that a try in my next free moment. If that doesn't do it, I'll have to think about this one for a while.
Thanks.
 
Old 07-26-2021, 07:28 AM   #8
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ParadigmComplex View Post
My proposed fix does seem to work. I'll try to queue it up for 0.7.22beta2 and document the need to manually adjust the symlink if one changes which stratum provides grub.
Great. Thank you.
 
Old 07-26-2021, 04:44 PM   #9
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
Quote:
Originally Posted by marcin- View Post
I noticed if I reinstall fonconfig package which is installed during create solus strata causes the same problem.
I'm not very familiar with Solus, but it appears eopkg runs depmod on every package (re)install irrelevant of whether or not it owns the kernel or the package does anything with/to modules.

Pinning depmod didn't work. Presumably eopkg either sets its own `$PATH` or uses the path to its depmod rather than search the `$PATH`.

While it's not ideal, I think I have a fix that at least keeps the system bootable. When booting, Bedrock can detect the empty `modules.dep` and generate a good `modules.dep` with its zstd-aware `depmod`. Downsides to this solution include:

- Without manual intervention (e.g. running a ztsd-aware `depmod` manually) the system will not be able to load modules between running `eopkg it [...]` and rebooting.
- This will slightly slow rebooting after an `eopkg it` as Bedrock runs `depmod`.

but at least the system boots.

I have included both the above described GRUB theme fix and module handling fix in 0.7.22beta2. If you could try it out and confirm for me that it works as expected and resolves your difficulties here, I'd greatly appreciate it.

If you're installing fresh, you can use the beta installer from here: https://raw.githubusercontent.com/be...7beta/releases

or if you're fixing things in-place (e.g. with a backup kernel) instructions to update to the beta are here: https://bedrocklinux.org/0.7/beta-channel.html
 
Old 07-27-2021, 03:29 PM   #10
marcin-
LQ Newbie
 
Registered: Aug 2019
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ParadigmComplex View Post
I'm not very familiar with Solus, but it appears eopkg runs depmod on every package (re)install irrelevant of whether or not it owns the kernel or the package does anything with/to modules.
I've checked pisi code (eopkg uses pisi) and seems that usysconf Solus tool is execute for upgrade, install and remove operations without any kernel module path condition. Seems that usysconf doesn't skip depmod if not necessary.
The same behaviour is for Solus live system. `eopkg it wget` causes triggering depmod.

Quote:
Originally Posted by ParadigmComplex View Post
Pinning depmod didn't work. Presumably eopkg either sets its own `$PATH` or uses the path to its depmod rather than search the `$PATH`.
Seems that usysconf doesn't check `$PATH` for execute depmod command.

Quote:
Originally Posted by ParadigmComplex View Post
While it's not ideal, I think I have a fix that at least keeps the system bootable. When booting, Bedrock can detect the empty `modules.dep` and generate a good `modules.dep` with its zstd-aware `depmod`. Downsides to this solution include:

- Without manual intervention (e.g. running a ztsd-aware `depmod` manually) the system will not be able to load modules between running `eopkg it [...]` and rebooting.
- This will slightly slow rebooting after an `eopkg it` as Bedrock runs `depmod`.

but at least the system boots.
That's right, not ideal, but the system boots.

Quote:
Originally Posted by ParadigmComplex View Post
I have included both the above described GRUB theme fix and module handling fix in 0.7.22beta2. If you could try it out and confirm for me that it works as expected and resolves your difficulties here, I'd greatly appreciate it.
I checked on VirtualBox. GRUB theme came back. Booting process freezes for a while when `eopkg it` was used during previous session, but it works as expected. Thank you.
 
Old 07-27-2021, 04:22 PM   #11
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 169

Rep: Reputation: Disabled
You're welcome! Thanks for reporting it and working with me to find and confirm a fix. I'll be sure to include these changes we confirmed in beta in the next stable release.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen lock after inactivity and suspend in artix openrc with herbstluftwm screamin4vengence Linux - Newbie 3 12-28-2020 01:24 AM
[SOLVED] bedrock, added devuan strata, can't get kernel jr_bob_dobbs Bedrock Linux 5 10-20-2019 07:33 AM
LXer: SDR meets AI in a mash-up of Jetson TX2, Artix-7, and 2×2 MIMO LXer Syndicated Linux News 0 07-18-2018 07:21 PM
LXer: Solus 3 Released Here Is What's New in Solus 3 LXer Syndicated Linux News 0 08-19-2017 07:56 PM

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

All times are GMT -5. The time now is 05:22 AM.

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