[Buildroot] [PATCH v3] package/systemd: invoke systemd-tmpfilesd on final image

yann.morin at orange.com yann.morin at orange.com
Mon Jul 4 06:45:57 UTC 2022


Norbert,All,

On 2022-07-04 08:41 +0200, MORIN Yann INNOV/IT-S spake thusly:
> On 2022-01-09 12:07 +0100, Norbert Lange spake thusly:
> > Especially for read-only filesystems it is helpfull to
> > pre-create all folders for non-volatile paths.
> I'm revisiting this old change of yours, and I have some issues
> understanding the original issue this is supposed to fix...
> 
> Indeed, for read-only filesystems, we do generate a factory for /var.
> This code is guarded by a condition on BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW,
> so indeed, if BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is set, we do not
> create the factory. But if it is set, then we do create the factory:

*if it is _unset_, then we do create the factory.

>   - move /var away to /usr/share/factory/var
>   - register its content as a tmpfiles.d:
>     https://github.com/buildroot/buildroot/blob/master/package/skeleton-init-systemd/skeleton-init-systemd.mk#L37

Note: this tmpfiles.d is currently stored in /etc/tmpfiles.d, but it
really belong to /usr/lib/tmpfiles.d (to later allow for an empty /etc
too).

Regards,
Yann E. MORIN.

-- 
                                        ____________
.-----------------.--------------------:       _    :------------------.
|  Yann E. MORIN  | Real-Time Embedded |    __/ )   | /"\ ASCII RIBBON |
| +33 534.541.179 | Software  Designer |  _/ - /'   | \ / CAMPAIGN     |
| +33 638.411.245 '--------------------: (_    `--, |  X  AGAINST      |
|      yann.morin (at) orange.com      |_="    ,--' | / \ HTML MAIL    |
'--------------------------------------:______/_____:------------------'


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.




More information about the buildroot mailing list