[Buildroot] [autobuild.buildroot.net] Your daily results for 2021-02-04

Heiko Thiery heiko.thiery at gmail.com
Sat Feb 6 09:36:33 UTC 2021


Hi Peter,

Am Fr., 5. Feb. 2021 um 22:41 Uhr schrieb Peter Korsgaard <peter at korsgaard.com>:
>
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
>
> Hi,
>
>  >> Ideally the package should be fixed to create those files in
>  >> $DESTDIR/dev/shm rather than mess around with the host /dev/shm.
>  >>
>  >> But as /dev/shm is not persistent, how does this work at runtime? What
>  >> do those files do exactly?
>
>  > They are shared memory.
>
>  > From shm_overview(7):
>
>  >     On Linux, shared memory objects are created in a (tmpfs(5)) virtual
>  >     filesystem, normally mounted under /dev/shm. [...]
>
> That I get.
>
>  > There is in fact nothing wrong in creating such shm objects during the
>  > build.
>
> From the logs it looks like they are created during the installation,
> rather than during the build.
>
>  > What is wrong, is leaving them lingering about...
>
> Indeed. I don't particular understand why the installation step needs to
> fiddle with shared memory objects in the first place, but Ok.

The reason is that sysrepo and sysrepoctl create these files for
handling the modules. Indeed it is not 100% clear to me if these files
are really needed when installing the modules. But I think this by
design of syrepo.

> So these objects are only needed temporarily during installation and not
> later at runtime?

In this case these files are only temporarily needed during the
installation. Later on the target these files are also created for
runtime.

-- 
Heiko



More information about the buildroot mailing list