Hey Henning,

I wanted to let you know that I've implemented the solution you suggested and it worked like a charm. Using snippet files in /etc/systemd/system.conf.d/*.conf and creating a custom package recipe with the "dpkg-raw" class did the trick.

I appreciate your help and the example you shared. It was really useful and helped me get things done smoothly.

Cheers!

Br,

Taneli


su 19. maalisk. 2023 klo 14.11 Henning Schild (henning.schild@siemens.com) kirjoitti:
Am Sat, 18 Mar 2023 18:16:10 -0700 (PDT)
schrieb Taneli Liljasto <taneli.liljasto@gmail.com>:

> Hi,
>
> I hope this message finds you well. I am relatively new to BitBake
> and the process of creating custom Linux images. I am currently
> working on a project that requires the modification of the systemd
> configuration file located at /etc/systemd/system.conf. My objective
> is to enable the watchdog feature and alter the logging settings
> within this file.

Touching this file could turn out hard because it is owned by a package
that you in Isar install directly from Debian.

Better would be to set the values from snippet files in
/etc/systemd/system.conf.d/*.conf those snippets would be installed via
a customizations package using the class "dpkg-raw"

Best try it first manually and once you know what files and lines you
want start writing your package recipe and make sure the package gets
installed with IMAGE_INSTALL.

An example can actually be found here
https://gitlab.com/cip-project/cip-core/isar-cip-core/-/commit/89ec2cb2d8709419c8adffdc071242c69e50266a
It does watchdog, also something on printing and other things.

Henning


> I have been utilizing meta-isar's application recipes as a reference
> to include my custom files on the device. However, I have encountered
> a challenge with customizing the settings, as my files are being
> overwritten by package configurations during the build process. It
> appears that I may be missing some critical understanding of the
> correct method to achieve this customization.
>
> I kindly request your guidance on this matter. Your expertise and
> recommendations on how to properly modify the systemd configuration
> file within the Isar build system would be greatly appreciated. If
> there are any resources or documentation that you believe may be
> helpful in this regard, please do not hesitate to share them.
>
> Thank you in advance for your time and assistance. I look forward to
> learning from your collective knowledge and experience.
>
> Best regards,
> Taneli Liljasto
>