LinuxQuestions.org
Visit Jeremy's Blog.
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 08-10-2017, 05:08 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 654
Blog Entries: 136

Rep: Reputation: 189Reputation: 189
dedicated mini-strata


It is possible to have a sort of mini-strata? What I mean is, a strata that includes one program and only the needed libraries for that program.
 
Old 08-11-2017, 05:34 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
Yes, it works fine. If you statically compile the executable so it does not need other libraries you can have a stratum that is (effectively - not actually, see below) a single file. You can also have strata without any executables. For example, you could have a stratum that is just man pages or icons. Applications provided by other strata which use those man pages or icons would then pick them up automatically.

When you enable strata Bedrock Linux creates some files and directories to ensure cross-stratum coordination. For example, /proc and /dev. So once you enable such a mini-stratum you'll end up with more files than strictly the executable-with-libraries you've proposed, but not meaningfully so.

If you want to experiment with this, it's worth noting that the current release of Bedrock Linux as of time of writing - 1.0beta2 Nyla - provides a statically compiled busybox at /bedrock/libexec/busybox. You should be able to make a mini-stratum with just this. It'd be something like:

Code:
# make stratum's files
mkdir -p /bedrock/strata/mini-stratum-test/bin/
cp /bedrock/libexec/busybox /bedrock/strata/mini-stratum-test/bin/
# make config
printf "\n[mini-stratum-test]\nframework = default\n" >> /bedrock/etc/strata.conf
# enable stratum for use
brs enable mini-stratum-test
# test
brc mini-stratum-test busybox --help
 
1 members found this post helpful.
Old 08-11-2017, 11:38 AM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 654

Original Poster
Blog Entries: 136

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by ParadigmComplex View Post
You can also have strata without any executables. For example, you could have a stratum that is just man pages or icons. Applications provided by other strata which use those man pages or icons would then pick them up automatically.
Whoa. That is very cool. It opens up possibilities, yes it does.

Quote:
When you enable strata Bedrock Linux creates some files and directories to ensure cross-stratum coordination. For example, /proc and /dev. So once you enable such a mini-stratum you'll end up with more files than strictly the executable-with-libraries you've proposed, but not meaningfully so.
Understood.

Quote:
If you want to experiment with this, it's worth noting that the current release of Bedrock Linux as of time of writing - 1.0beta2 Nyla - provides a statically compiled busybox at /bedrock/libexec/busybox. You should be able to make a mini-stratum with just this. It'd be something like:

Code:
# make stratum's files
mkdir -p /bedrock/strata/mini-stratum-test/bin/
cp /bedrock/libexec/busybox /bedrock/strata/mini-stratum-test/bin/
# make config
printf "\n[mini-stratum-test]\nframework = default\n" >> /bedrock/etc/strata.conf
# enable stratum for use
brs enable mini-stratum-test
# test
brc mini-stratum-test busybox --help
That is extremely cool! I've been reading about busybox & toybox for a while and have found the concept fascinating.

Thank you for the information.

Last edited by jr_bob_dobbs; 08-11-2017 at 11:40 AM.
 
  


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
Zareason Strata 8110 LinuxUser42 Slackware 1 10-07-2016 07:21 PM
livecd as a strata? jr_bob_dobbs Bedrock Linux 2 07-14-2016 05:47 PM
first strata: naming convention jr_bob_dobbs Bedrock Linux 2 04-18-2016 03:59 PM
[SOLVED] Dedicated NAS vs custom mini itx server propofol Linux - Hardware 20 07-12-2013 12:04 AM
Best mini distribution for use in dedicated computer running a single graphic app toglia Linux - Distributions 2 05-17-2009 07:34 PM

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

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