:: Re: [DNG] What is an init system?
Pàgina inicial
Delete this message
Reply to this message
Autor: Didier Kryn
Data:  
A: dng
Assumpte: Re: [DNG] What is an init system?
Le 30/05/2024 à 20:15, karl@??? a écrit :
> Kevin Chadwick:
> ...
>> Likely not much help but OpenBSD has static dev files and their
>> hotplugd listens to events from the kernel on /dev/hotplug
> You can have basically the same in linuxland, use a static /dev and
> do (excerpt from https://git.busybox.net/busybox/tree/docs/mdev.txt):
>
> Here's a typical code snippet from the init script:
> [0] mount -t proc proc /proc
> [1] mount -t sysfs sysfs /sys
> [2] echo /sbin/mdev > /proc/sys/kernel/hotplug
>
> and possible add mdev -s to fill /dev.
>

    'mdev -s' is typicaly what you do in the Busybox-based "pre"-init,
the init which is run out of initramfs.

    I do not call this static /dev.

    A static /dev is when all the devices files in /dev are ready made
and present in /dev before boot, and never change. Another thing is to
have /dev just not mounted on tmpfs and populating it during the early init.

    Karl, since you seem to have a pretty good understanding of this
matter, may be a little tutorial would be welcome.

--     Didier