LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   first strata: naming convention (https://www.linuxquestions.org/questions/bedrock-linux-118/first-strata-naming-convention-4175577285/)

jr_bob_dobbs 04-12-2016 11:54 AM

first strata: naming convention
 
I've been going through the documentation for Nyla. Wow! Things have changed since the previous version!

Anyway, to my actual question. From the documentation, regarding putting in the first strata:
Quote:

You'll need to come up with some other name for this stratum. Then, later, rootfs will be aliased to this name so that either option will refer to the same stratum. If you did a hijack install and are keeping the hijacked distro's files, the convention here is to use the name of the hijacked distro's release (or just the distro's name of it is a rolling release). For example, if you installed and are hijacking Debian 8 "Jessie", the convention is to use "jessie" as rootfs' name. If you are doing a manual install, the convention is to use the Bedrock Linux release name. For this release, Bedrock Linux 1.0beta2 "Nyla", that is "nyla".
So for the first distro, if I do it manually, it would be /bedrock/strata/nyla, but if I use the hijack method, it's "/bedrock/distro name"? Why would the naming scheme would differ for manual vs. hijack methods?

Thank you in advance.

EffervescentRing 04-12-2016 11:55 PM

Things certainly have changed a lot in Nyla, and one of the main ways is the hijack install method. After install, a hijacked system typically looks a little different to a manual install, though you can technically convert either to ultimately end in the same install.

In a hijack installation, the filesystem/directory being used for the first stratum contains an existing distribution. If you keep the original distribution to use as a stratum, it is serving multiple purposes. It holds the following:
  1. Original distribution's files that serve as your first stratum.
  2. Global configuration files that are shared between your strata.
  3. Rootfs files that enable Bedrock initialization.

If for example, you hijacked a Debian 8 install and wanted to keep the contents of Debian there as a stratum, it would make the most sense to call it "jessie" because when Bedrock is in operation, if you want to run a command from that stratum it would be from the Debian install.

When you do a manual install, you do not start with any distribution's files, so the stratum containing the rootfs files would just contain rootfs and possibly global files. Thus it makes sense to call it "nyla" because it contains only Bedrock-related files.

There is a ton of flexibility in the Bedrock install process, so you could do something like remove the hijacked distro after hijacking in which case it would make sense to name the stratum differently. You could also potentially perform a manual install, then install a distro into an existing stratum that already contained rootfs files, in which case it would also make sense to rename. But generally people performing hijack or manual installs will end up with a system as described above.

Siljrath 04-18-2016 03:59 PM

my personal method, i prefix "jack" to the name of the initial strata['s distro].

so for when i hijacked voidlinux, its strata became jackvoid, and on another machine i hijacked slackware(current) and called it jackslack. [edit]... oh, and my funtoo hijack i called jacktoo. ^_^[/edit]

i chose to do this addition to help remember later when i have lots of strata which was first, and to help provide an alternative strata name for when i add more strata of that distro, and the hijacked strata gradually gets picked away to less and less, and/or even removed maybe. ^_^

so, it's a convention, to keep things simple.

but you dont need to follow it.

you could call it "bob".

using a distro's release name (e.g. jessie) rather than distro name (e.g. debian) might be useful later on, above just picking the distro name, like if you make an upgrade strata.

using bedrock release name (e.g. nyla) might be worth doing once (/if) the hijack strata is stripped to nothing more than you'd get from a non-hijack full bedrock install's initial stratum. ^_^ maybe that's a little silly/slippery now that the bedrock stratum's now split in nyla. http://bedrocklinux.org/1.0beta2/con...ata-attributes

whatever you end up calling it, can always meddle around it for your convenience later http://bedrocklinux.org/1.0beta2/tro...tratum-aliases


[edit]
P.S.
i wonder if you could rename the fallback strata to Nyla.
... that'd be a bit more in keeping with the old way.


All times are GMT -5. The time now is 10:50 AM.