~alpine/users

5 3

[alpine-user] Lack of a minimal documentation on Alpine's overall architecture, run-from-RAM feature, mkinitfs, modloop etc.

Timur Fayzrakhmanov <tim.fayzrakhmanov@gmail.com>
Details
Message ID
<CAEQMig3N95AM=GY1OXFFVt4Le9cc+62H_p=nQ5SDC-icJ3mESg@mail.gmail.com>
Sender timestamp
1522269534
DKIM signature
missing
Download raw message
Dear all,

I think Alpine Linux is the most technical-grounded (and clean)
distribution I've ever seen among wide-spread ones. That is why I want to
thank you all who participate in such a "hardened" project. However, it
comes to price if you're newbie you're probably doomed to search solutions
by your own and unlikely get help or much of documentation. My last point -
before I decided to write this messege - was no response for week after I
posted two questions on Alpine's forum and SuperUser. The one that is still
good to get attention:
https://forum.alpinelinux.org/forum/installation/what-%E2%80%9Cmodloop%E2%80%9D-option-alpine.
Yep, sometimes Arch's wiki helps and it's a good resource if you didn't
find Alpine's corresponding one. But in many cases it isn't enough.

So let's get more constructive. I faced with a situation when there is so
little information for one of the most thoroughly designed Alpine's feature
(besides security) and the least covered topic on how it's actually
organized/designed. It's run-from-RAM feature. Another example can be
mkinitramfs tool. It is quite complex script with almost 1k LOC of logic
for init. However, there is no even one line of readme (there same goes for
source code) where one can understand what's going on inside, if you are
not Natanael Copa however. He works like a machine. Certainly, God bless
him. But getting back - I found a lot of such repos. I think the things
getting like "one knows everything and everyone else do it on trust" :).
It's ok but understand things on conceptual level in our activity is
"highly recommended" :).

There are other things in question:
- Alpine overall architecture;
- What is modloop!?
  (certainly set of kernel modules but what the design decision behind is
unknown)
- Booting process description;
  (from Alpine originator's perspective)
- How kernel, initramfs (its init script) and init (OpenRC) are related to
each other;
  (you can doubt it but Alpine tends to adopt things in its own way and I
think it should be covered somehow)

Please, don't get me wrong. I'm not trying to criticise someone or
complain. I'm really inspired by Alpine and spend a lot of time to dig in.
I just want to make an attention to the quite fundamental things
(especially) from newbie perspective.

Live long and prosper,
Timur Fayzrakhmanov.
Details
Message ID
<20180409135338.GB14670@alpine.my.domain>
In-Reply-To
<CAEQMig3N95AM=GY1OXFFVt4Le9cc+62H_p=nQ5SDC-icJ3mESg@mail.gmail.com> (view parent)
Sender timestamp
1523282019
DKIM signature
missing
Download raw message
Hi,

Sorry for the late reply.


Timur Fayzrakhmanov wrote:
 
> There are other things in question:
> - Alpine overall architecture;

What do you mean by that? The base of Alpine is BusyBox/musl/apk.

> - What is modloop!?

Modloop is a kernel module for loop devices.

> - Booting process description;
> - How kernel, initramfs (its init script) and init (OpenRC) are
> related to each other;

OpenRC is not init on Alpine, it's a service manager. /sbin/init is
a link to /bin/busybox. The openrc package also provides init scripts.
/etc/inittab describes the boot process, which is:

/sbin/init -> /sbin/openrc sysinit -> /sbin/openrc boot ->
	/sbin/openrc default -> ttys are spawned

initramfs is caught by the kernel and the bootloader, only after it is
started /sbin/init is being executed. Read more about the Linux booting
process and initramfs on Wikipedia or elsewhere, I myself never use it.

> (you can doubt it but Alpine tends to adopt things in its own way and
> I think it should be covered somehow)

It doesn't really. 

--
caóc



---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Joshua Haase <hahj87@gmail.com>
Details
Message ID
<87r2nng2z1.fsf@riseup.net>
In-Reply-To
<20180409135338.GB14670@alpine.my.domain> (view parent)
Sender timestamp
1523330546
DKIM signature
missing
Download raw message
Cág (2018-04-09 13:53):

| Hi,
|
| Sorry for the late reply.
|
|> - What is modloop!?
|
| Modloop is a kernel module for loop devices.

>From a newbie perspective, you can think of it as a way to mount files
as if they were disks.


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Joshua Haase <hahj87@gmail.com>
Details
Message ID
<878t9v9c5m.fsf@riseup.net>
In-Reply-To
<20180410115640.QHDo8%steffen@sdaoden.eu> (view parent)
Sender timestamp
1523383093
DKIM signature
missing
Download raw message
Steffen Nurpmeso (2018-04-10 13:56):

| Joshua Haase <hahj87@gmail.com> wrote:
|
|  |From a newbie perspective, you can think of it as a way to mount files
|  |as if they were disks.
|
| There was or is TinyCoreLinux, where packages are not unpacked and
| installed, but kept as balls and the simply mounted in via modloop.

I think that is done using unionfs over loop devices (at least i think
that's how slax did it). But the analogy still applies.

Hope this clarifies some things for Timur.


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<20180410115640.QHDo8%steffen@sdaoden.eu>
In-Reply-To
<87r2nng2z1.fsf@riseup.net> (view parent)
Sender timestamp
1523361400
DKIM signature
missing
Download raw message
Joshua Haase <hahj87@gmail.com> wrote:
 |Cág (2018-04-09 13:53):
 || Sorry for the late reply.
 ||
 ||> - What is modloop!?
 ||
 || Modloop is a kernel module for loop devices.
 |
 |>From a newbie perspective, you can think of it as a way to mount files
 |as if they were disks.

There was or is TinyCoreLinux, where packages are not unpacked and
installed, but kept as balls and the simply mounted in via modloop.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<20180410184518.boE6J%steffen@sdaoden.eu>
In-Reply-To
<878t9v9c5m.fsf@riseup.net> (view parent)
Sender timestamp
1523385918
DKIM signature
missing
Download raw message
Joshua Haase <hahj87@gmail.com> wrote:
 |Steffen Nurpmeso (2018-04-10 13:56):
 || Joshua Haase <hahj87@gmail.com> wrote:
 ||
 |||From a newbie perspective, you can think of it as a way to mount files
 |||as if they were disks.
 ||
 || There was or is TinyCoreLinux, where packages are not unpacked and
 || installed, but kept as balls and the simply mounted in via modloop.
 |
 |I think that is done using unionfs over loop devices (at least i think
 |that's how slax did it). But the analogy still applies.

I have forgotten how it worked, actually.  Linux has bind mounts
(now, and is very, very cool in that respect), FreeBSD has nullfs.
Do not ask me no questions...

..But, just in case you refer to some ML thread long ago and
somewhere else: i continue not to like unionfs if that prevents me
from using getdents*(2) because mess in userspace is used to
overcome some filesystem shortcomings.  ..That cannot be
represented as secondary "whiteout" files.  I want getdents.  What
is wrong with getdents?  I would also take the same bytestream via
open(2)..read(2), but that is more and more forbidden, everywhere.
Last that i have seen who changed it was OpenBSD.

 |Hope this clarifies some things for Timur.

Yeah, i realized he will not be able to get anything from that,
but then the message was away for some time already.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)