LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-17-2019, 07:13 PM   #1
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Rep: Reputation: Disabled
How to fix Solus hijacking incompleteness?


Hi all!
I first brought this up on IRC but had to go before I could post the log report asked of me.

The issue:
My Solus installation I just performed did not integrate itself with the environment, so I'm wondering if maybe that is why I'm having some issues compared to another Solus+Bedrock user. As a stopgap I've added `source /bedrock/run/profile` to `~/.bashrc` and `/root/.bashrc` but maybe that doesn't fix everything necessary.

I was asked to run `brl report` so here is the zerobin output.

Thoughts?
 
Old 06-18-2019, 10:00 AM   #2
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
rerun report as roon

root version of report gen here.
 
Old 06-18-2019, 04:18 PM   #3
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
After discussion with you on IRC, I've exhausted ideas I have to debug the issue remotely. When I find the time I'll attempt to hijack a Solus install and see if I can reproduce the issue discussed. If so, it should be much easier for me to debug the issue locally.
 
Old 06-18-2019, 04:42 PM   #4
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
That would be fantastic! You mentioned on IRC that you tried to install the same program that I had (zoom from arch:AUR) and had absolutely no issues - I would love to get my install of Solus+BRL up to that ease of use.
 
Old 06-21-2019, 01:32 PM   #5
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
I've attempted the userland install method, and encountered problems. I was able to get around most of them, but finally stuck at the musl compiler I think not finding <scsi/sg.h>, despite it being in linux_headers/include/scsi/sg.h

Here is what I did to make progress on the problems I overcame during the tarball making process. I don't know what I'm doing here, so it's probably wrong!

Code:
git clone --branch 1.0beta3 https://github.com/bedrocklinux/bedrocklinux-userland.git
cd bedrocklinux-userland
make

cp src/libattr/include/xattr.h-fixed src/libattr/include/xattr.h
(also, I edited line 114 here,and commented out the entire compound command beginning with git)
make

cd src/libattr
./autogen.sh

cd ../..
make

cd src/libattr
make install

cd ../..
make
I'll try another bare metal hijacking from the downloadable shell file.
 
Old 06-21-2019, 01:44 PM   #6
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ParadigmComplex View Post
After discussion with you on IRC, I've exhausted ideas I have to debug the issue remotely. When I find the time I'll attempt to hijack a Solus install and see if I can reproduce the issue discussed. If so, it should be much easier for me to debug the issue locally.
So I should note that I never said one important thing, that I was using the downloadable shell installer: https://github.com/bedrocklinux/bedr....7.6-x86_64.sh

I'm now trying to build the script myself using beta 1.0beta2 (since I've tried 1.0beta3 this morning, see later post)
 
Old 06-21-2019, 03:07 PM   #7
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
Well I tried 1.0beta2 and followed all the instructions, twice. After a reboot both times I get this error trying to do anything with brl (but it DOES see brl by default!):

Code:
bash-5.0$ brl fetch --list
/bedrock/bin/bri: cd: line 358: can't cd to /bedrock/run/enabled_strata: No such file or directory
 
Old 06-24-2019, 05:19 AM   #8
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by grumbly View Post
That would be fantastic! You mentioned on IRC that you tried to install the same program that I had (zoom from arch:AUR) and had absolutely yes issues - I would love to get my install of Solus+BRL up to that ease of use.
I apologies for the time it's taken me to get around to it. Personal life surprises have eaten more of my time than usual in the past few weeks, on top of which Bedrock has gotten more attention than usual recently and swamped me with support requests. I haven't forgotten about this, and I fully intend to get to it as soon as I have a moment.

Quote:
Originally Posted by grumbly View Post
I've attempted the userland install method, and encountered problems.
While past releases had multiple installation options, the current only has one, unnamed install method. I'm a bit lost as to what you're doing.

If you go to the project website at https://bedrocklinux.org/ you can follow "Installation instructions" on the left navigation bar to find the current release's installation instructions.

Quote:
Originally Posted by grumbly View Post
Code:
git clone --branch 1.0beta3 https://github.com/bedrocklinux/bedrocklinux-userland.git
If you go to the project website at https://bedrocklinux.org/ you can follow "All releases" on the left navigation bar to find the the list of Bedrock Linux releases. We've never had a 1.0beta3 release. Note this FAQ entry about the name change.

If you go to the project website at https://bedrocklinux.org/ you can follow "Installation instructions" on the left navigation bar to find the current release's installation instructions which includes a link to the current release's source code, should you wish to compile it yourself.

You can also go to https://github.com/bedrocklinux/bedrocklinux-userland and just clone master, which I try to keep in sync with the current release.

Quote:
Originally Posted by grumbly View Post
So I should note that I never said one important thing, that I was using the downloadable shell installer: https://github.com/bedrocklinux/bedr....7.6-x86_64.sh
That's the expected installation method for the current release.

Quote:
Originally Posted by grumbly View Post
I'm now trying to build the script myself using beta 1.0beta2 (since I've tried 1.0beta3 this morning, see later post)
While you might be able to adapt to each error message you run into and stumble your way to something, in general the instructions for 1.0beta2 won't work for building the current 0.7.6 release.

Also the post timestamps make it seem like an earlier post.

Quote:
Originally Posted by grumbly View Post
Well I tried 1.0beta2 and followed all the instructions, twice. After a reboot both times I get this error trying to do anything with brl (but it DOES see brl by default!):

Code:
bash-5.0$ brl fetch --list
/bedrock/bin/bri: cd: line 358: can't cd to /bedrock/run/enabled_strata: No such file or directory
Bedrock Linux 1.0beta2 doesn't have a `brl fetch --list`. Its `brl` works completely differently.

While I am amenable to assisting with 1.0beta2 when time is available should you have some desire to use it, I strongly recommend the current `0.7.x` release. I've heard no disagreement to the idea that it is a significant improvement over past releases. Moreover, the entire community and all of my support resources have moved over to it; it will be much easier and faster for me to support.

If you insist on 1.0beta2, make sure to use its documentation rather than the `0.7.x` documentation.
 
Old 06-24-2019, 11:39 AM   #9
grumbly
LQ Newbie
 
Registered: Jun 2019
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks so much for your detailed reply; I really appreciate it.

What I had done was attempt the beta2 userland compilation using the beta2 install instructions.
Then I also tried beta3 when I encountered too many issues to deal with on my own, but this was using the beta2 instructions.
I did not try just the userland master branch though - maybe I'll have better results with that.
I then went back and used the 0.7.6 shell installer as that doesn't give any errors for me, though I still needed to add 'source /bedrock/run/profile' to the appropriate places.
Oddly enough, on this new hardware I've been installing on, I get a very different behavior when trying to 'brl fetch ubuntu' where it gives a generic error and quits. On my personal laptop I installed an ubuntu strata without any issue.
So I think the safest thing to do if you have a minute is to start up a VM (I used VirtualBox) with Solus 4.0 and try to hijack it. I bet you'll see the same lack of brl in path that I do. I do make sure to update Solus first before attempting a hijack; attempting it the other way around causes too many changes that Bedrock is not aware of and creates an unbootable install (probably the kernel update?).
 
Old 06-24-2019, 06:06 PM   #10
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
I was able to reproduce both issues you've mentioned.

brl is not in the $PATH because apparently Solus makes /etc/profile a symlink to a file in /usr. We can sort of work around this by creating a /etc/profile.d/ directory and symlinking /bedrock/share/shells/include-bedrock to /etc/profile.d/99bedrock.sh. However, another package could create a /etc/profile.d/*.sh script which overwrites it and breaks things again, which is why Bedrock favors /etc/profile. I'll consider adding code to detect this scenario and fall back to an /etc/profile.d/*.sh script, as that's better than it flat out not working, but I'm not sufficiently confident in that to recommend it for production.

The issue in which the system is not bootable if Solus' kernel/initrd is updated post hijack appears to be because grub.cfg is configured to look in the root directory for the kernel and initrd rather than /boot. As a work around, you boot by by hitting `e` at the bootloader prompt and add /boot to the two file paths that are in the root directory. Once booted, you can manually edit /bedrock/grub/grub.cfg to fix it. However, I expect it to break again on the next update. I could not find out why a Bedrock'd Solus did this in the time I was able to allot to debugging it, and I'm very uncomfortable with the idea that a Bedrock user could find the system unbootable like this.

As noted on the distro support page we don't actually have any Bedrock distro maintainers who actively maintain Solus support. I've tried to find time to give it some attention despite this and have gotten it working in the past - hence the "Yes" in the hijack-able column you saw before and mentioned on IRC - but I keep finding they make changes which break functionality on Bedrock. Moreover, from prior experience I don't think the Solus devs are overly eager to have it work with Bedrock. While they never said anything outright, reading between the lines I got the impression they have a very specific curated experience in mind and things like Bedrock ruin their artistic vision.

Had I more time I'd be happy to pursue this out of principle - I'd certainly like Solus to work with Bedrock - but given the practicalities of the situation I'm going to have to throw in the towel. Solus on Bedrock really needs an active maintainer and we don't have anyone fit for the position.

My apologies for the bad news, particularly after having kept you waiting so long for me to get around to investigating it.
 
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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Solus 3 Released Here Is What's New in Solus 3 LXer Syndicated Linux News 0 08-19-2017 07:56 PM
physical ethernet hijacking bobwall Linux - Security 15 10-10-2004 01:27 PM
Nvidia refresh rate hijacking GF4+RH9 1eyedhive Linux - Hardware 2 12-10-2003 05:33 AM
USB hid.o hijacking my USB Printer Relativity Linux - Hardware 0 12-09-2003 08:56 PM
Browser Hijacking frkstein Linux - General 1 04-18-2003 06:58 PM

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

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