From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7212141524814921728 X-Received: by 2002:ac2:5102:0:b0:4e8:45d5:53cd with SMTP id q2-20020ac25102000000b004e845d553cdmr5965667lfb.12.1679248260653; Sun, 19 Mar 2023 10:51:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:4cf:b0:295:a3ad:f338 with SMTP id e15-20020a05651c04cf00b00295a3adf338ls1817792lji.4.-pod-prod-gmail; Sun, 19 Mar 2023 10:50:58 -0700 (PDT) X-Google-Smtp-Source: AK7set8a2Y9+c9U3T/DHkeyjoaGE5bX/0XlJEcJU+WOVLT6d856m0wYnTm85btMq08YgKTcKcDk0 X-Received: by 2002:a05:651c:904:b0:295:9ba2:8a78 with SMTP id e4-20020a05651c090400b002959ba28a78mr2683499ljq.17.1679248258845; Sun, 19 Mar 2023 10:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679248258; cv=none; d=google.com; s=arc-20160816; b=dKKViiiormUO9pnf36MrER9TH/PsbiqtnpoTM7cJaV67n8dkoTPCtw9LZor3QJGixC f4A4q9CwhVWMhvpq6nr3ST2Q5L3cC3XpfhzI9r3ux5oEqCGvP1ksfnZMJQWGWooc+NWq lWVfbpNkEKXw3ennEubCDx7O7ij3DQ5ynZ6yR4NB0YPVndzvoCql4rJ0gz/oK7wNsijz 0t3lJNM+NH7xWfnfq2DlMOhyv9WQ/SZPqzl/7QHTx59I0ulOipp3FKsSBiD1xVMcm8IL y2KUFRgPjkkPBjUrjX9ALrmkfRRSWjVU4Bxo4boHz/aUo+ekH3mmHepWPOueEebDhrN1 qo3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=SSUiwUeG8nxCM6OonZDvMGQ3EbgJpvjtc3njbC8vKQM=; b=TT3hHoU74Fl5e4aq7ua70gYdruISJgEvwAKKGNUE6weghC5DV1dv2ggHrJLkAgl+pn c99Po4jD7Y79MbVGHkXeUEEZj4b1OcTSH7pec38Nzx0eS1Tb+1Ze5+KPj0jcObW3/T0y Ej9jlJa0ySYIkr+t9xqDR2C7LvVb/jkS8XcKZeyv4rtDzyIweLYvVrVtKntCZKEire0/ CQJSNI1vfxQ4IUnuBGKYedItD4V21HVDgQMEIWw8mjIhLjEmb3qlVYuAK3Db9J4C/sH6 z5eN5ZnvpJUSn+xv+vAS/NdbfBR3OaDYENXv1v3OqIFx2Im0M5nsAKRt4bUgCneu4nmA Xu0w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mkUW3Jc5; spf=pass (google.com: domain of taneli.liljasto@gmail.com designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=taneli.liljasto@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com. [2a00:1450:4864:20::329]) by gmr-mx.google.com with ESMTPS id h1-20020a2ebc81000000b00299a6cef333si363589ljf.0.2023.03.19.10.50.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Mar 2023 10:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of taneli.liljasto@gmail.com designates 2a00:1450:4864:20::329 as permitted sender) client-ip=2a00:1450:4864:20::329; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mkUW3Jc5; spf=pass (google.com: domain of taneli.liljasto@gmail.com designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=taneli.liljasto@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-wm1-x329.google.com with SMTP id ay8so6131770wmb.1 for ; Sun, 19 Mar 2023 10:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679248258; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SSUiwUeG8nxCM6OonZDvMGQ3EbgJpvjtc3njbC8vKQM=; b=mkUW3Jc5wfap+JHSqh/dGjWQmSPE6RKy3taj+Qflu1Wo7l293hUT6oD06vJwd1mMeT Z/UEKf7yUyui5f0bw7IBH/X6RrqsrIPFq5xoi0GgwWWnmf5dD1ARPgk/2+mckLYqOJ7R 0aO1KoIBZMWy0dx1I7ybd6jJysVkh0ymEcofjHssfEJsTTKMUhoR7igYkow6i4u6+VSL TJWlX5jAGlCg5dopHs3OhPZF34mCkBSBBT+sCkoWa0csFUWNet/TGUd5oDZ0ycyIQyfz p9gnZppey5waChM//jGMZ4G5qxsd4JRddFwH2ZxEJtGj7FPMfec4pwM50jgtL7GU9GdJ GrvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679248258; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SSUiwUeG8nxCM6OonZDvMGQ3EbgJpvjtc3njbC8vKQM=; b=B6ZBMi5Eq2gefStp5sPjg5uURSqC1dejfRHA9CXYa4c3mHWmWT8IdfF/PVOZX7s+GW SMz3SeaMJ+Vy8QEtP9N6IGL3KPu5uZ5kQk09F29M65ND3tzGc9krHCNwar2jM4ZddDFH Zk3hUdii46gC3JbM/RRhoHaJGSKbB0V7At5uVfe7sh8Lr29DLy53BTxPYYJeeOPT/eU8 xNMFlit/+EW3L0u2+T8SRrn1QfyHSk1FNMX9ujAQc2Mc0dTQMcjFINO2mNpB92T/HOY5 9x6/ZrAKsAOVkFssaWarbkL1IZyYC5vxyQXn4swwuTL11RqChDSmZtbRVdFuVxTvLW8Y DZUQ== X-Gm-Message-State: AO0yUKVs1OnKPxAoEcLv48Aas9qQfrtGkeVtccYOQA5cmMQu3vWEeuWz tdx67MoloHRuA8x2WU/MjCLqL8K6SHcbzJJg7Q== X-Received: by 2002:a05:600c:5388:b0:3df:97de:8bab with SMTP id hg8-20020a05600c538800b003df97de8babmr8391001wmb.4.1679248258108; Sun, 19 Mar 2023 10:50:58 -0700 (PDT) MIME-Version: 1.0 References: <79978853-0ee3-4f11-b58c-69e649bdd035n@googlegroups.com> <20230319131133.1353620e@md1za8fc.ad001.siemens.net> In-Reply-To: <20230319131133.1353620e@md1za8fc.ad001.siemens.net> From: Taneli Liljasto Date: Sun, 19 Mar 2023 19:50:46 +0200 Message-ID: Subject: Re: Request for Assistance: Customizing systemd Configuration on Isar Build System To: Henning Schild Cc: isar-users Content-Type: multipart/alternative; boundary="000000000000ea13fe05f744734d" X-TUID: P6/ULpPRg914 --000000000000ea13fe05f744734d Content-Type: text/plain; charset="UTF-8" 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 : > > > 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 > > > > --000000000000ea13fe05f744734d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hey Henning,

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

I appreci= ate your help and the example you shared. It was really useful and helped m= e get things done smoothly.

Cheers!

Br,

Taneli

<= /div>
s= u 19. maalisk. 2023 klo 14.11 Henning Schild (henning.schild@siemens.com) kirjoitti:
Am Sat, 18 Mar 2023 18:16:10 -0= 700 (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/89ec2cb2d= 8709419c8adffdc071242c69e50266a
It does watchdog, also something on printing and other things.

Henning


> I have been utilizing meta-isar's application recipes as a referen= ce
> to include my custom files on the device. However, I have encountered<= br> > 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 <= br> > learning from your collective knowledge and experience.
>
> Best regards,
> Taneli Liljasto
>

--000000000000ea13fe05f744734d--