public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Request for Assistance: Customizing systemd Configuration on Isar Build System
@ 2023-03-19  1:16 Taneli Liljasto
  2023-03-19 12:11 ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Taneli Liljasto @ 2023-03-19  1:16 UTC (permalink / raw)
  To: isar-users


[-- Attachment #1.1: Type: text/plain, Size: 1238 bytes --]

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.

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

[-- Attachment #1.2: Type: text/html, Size: 1281 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Request for Assistance: Customizing systemd Configuration on Isar Build System
  2023-03-19  1:16 Request for Assistance: Customizing systemd Configuration on Isar Build System Taneli Liljasto
@ 2023-03-19 12:11 ` Henning Schild
  2023-03-19 17:50   ` Taneli Liljasto
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Schild @ 2023-03-19 12:11 UTC (permalink / raw)
  To: Taneli Liljasto; +Cc: isar-users

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
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Request for Assistance: Customizing systemd Configuration on Isar Build System
  2023-03-19 12:11 ` Henning Schild
@ 2023-03-19 17:50   ` Taneli Liljasto
  2023-03-19 18:39     ` Henning Schild
  0 siblings, 1 reply; 4+ messages in thread
From: Taneli Liljasto @ 2023-03-19 17:50 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users

[-- Attachment #1: Type: text/plain, Size: 2627 bytes --]

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
> >
>
>

[-- Attachment #2: Type: text/html, Size: 3502 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Request for Assistance: Customizing systemd Configuration on Isar Build System
  2023-03-19 17:50   ` Taneli Liljasto
@ 2023-03-19 18:39     ` Henning Schild
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Schild @ 2023-03-19 18:39 UTC (permalink / raw)
  To: Taneli Liljasto; +Cc: isar-users

Am Sun, 19 Mar 2023 19:50:46 +0200
schrieb Taneli Liljasto <taneli.liljasto@gmail.com>:

> 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.

Good to hear that. I hope you find Isar useful for your project, reach
out if you have more questions. For most "common" things there are
examples available in several open source layers.

Henning

> 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
> > >  
> >
> >  


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-19 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19  1:16 Request for Assistance: Customizing systemd Configuration on Isar Build System Taneli Liljasto
2023-03-19 12:11 ` Henning Schild
2023-03-19 17:50   ` Taneli Liljasto
2023-03-19 18:39     ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox