From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 18 Feb 2026 19:05:25 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f59.google.com (mail-qv1-f59.google.com [209.85.219.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 61II5MXv026285 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Feb 2026 19:05:23 +0100 Received: by mail-qv1-f59.google.com with SMTP id 6a1803df08f44-8954a05270esf587196d6.0 for ; Wed, 18 Feb 2026 10:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1771437917; x=1772042717; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=X6BOV+qKCq+guTMhbna9bepx/1W2C6ElI0xCTW8ODmk=; b=awS3KXUVyGKZVO6zEq5JRy/xlFz2YjEVl2FeGMfoHflZUw0+h5mubkOZrNhpaLbQ1J 4xp1QV9VWU0C+BpHWTYekiqRZo5izFN2aApyusjmzLy04qm41+lScuu/cll3+RIi3JnK 4cm7zbEKe80FfJ+H3Q0byo/VOtc1Nrn+ZzlAK4fvCb/3QMt+gO0j79khYxJTRg5Zd5eP 0EQ123aHzKpMFUH8e5w9ytkVWY3obdtGT0GW9/hcgZn0mQ5rTXDYUXPaPrqvjnlmSh2W yqKQVL0tcMDhhKb9q7qxoHWjS6xQbbuBusM8x9Ddjg05gKiSGFFSgjPm/VTSSlzYgicp mSqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771437917; x=1772042717; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X6BOV+qKCq+guTMhbna9bepx/1W2C6ElI0xCTW8ODmk=; b=SLhEmC2ODFQl+NiylSOaNH3twJN+B41NJd5vdUa08kVuPdcEQJE9PmK4qQyaTtzUfg ojWosUUfgQ/wzsyEU3HrDPEnz9Y5J4rQN+aW+gSKnIPN5/KMGgxImUCZOU5VGraKqC4j tH9+4ZVq2sW1thDrs8yLmsS3NJQYsPKXeeep4Jw9s2LbZx6Je3EnfWilhjLnOu/gKjCn JzOMKafCgHQsWEQcEr6pdA/fY2B34UgFOYVpzl5uVvJJ33N8NSWWEKgn+BuLyDAhjJzY jUKe/9PkP27beaQJ2VseOBT7z2nSTEAtNYs/ch/U1XCr1XC4B/pApOVw8mgKGcwIJHfi pCEw== X-Forwarded-Encrypted: i=1; AJvYcCUs58G9D3514HXp3ysq7zuTLN0ITddZkSoPtynSPp8e9U3+mRKvCqf1Bci01Hi3zxYBGDWE@ilbers.de X-Gm-Message-State: AOJu0Yw5lqBjcLAmH6+HyHFB/dd/b1e4aUSQuIqs7UAX5CYuAOaJrYau INMyw6QQfrGyOFZmjxevC+F7MmUuR7UedSr2NyrRN19GQkGp5617gk9D X-Received: by 2002:a05:6214:5f82:b0:897:3f5:6a9a with SMTP id 6a1803df08f44-897347cc42fmr198423766d6.6.1771437917056; Wed, 18 Feb 2026 10:05:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+H7T7Zb5kJ8NMIjGPIxjDRVHZM1t22IXkuWy6TApq3K6A==" Received: by 2002:a05:6214:250e:b0:897:292:2df1 with SMTP id 6a1803df08f44-89729e157e0ls129457586d6.1.-pod-prod-03-us; Wed, 18 Feb 2026 10:05:15 -0800 (PST) X-Received: by 2002:a05:620a:44d2:b0:8c9:f996:81fc with SMTP id af79cd13be357-8cb409188d7mr2337048785a.83.1771437915680; Wed, 18 Feb 2026 10:05:15 -0800 (PST) Date: Wed, 18 Feb 2026 10:05:15 -0800 (PST) From: "'Gokhan Cetin' via isar-users" To: isar-users Message-Id: In-Reply-To: <04627060deedab9bb4b88a4b066027ae78f89cc8.camel@siemens.com> References: <20260113144832.3231870-1-badrikesh.prusty@siemens.com> <20260113144832.3231870-2-badrikesh.prusty@siemens.com> <04627060deedab9bb4b88a4b066027ae78f89cc8.camel@siemens.com> Subject: Re: [PATCH v2 2/2] image: make populate-systemd-preset opt-in MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1226816_331060129.1771437915489" X-Original-Sender: gokhan.cetin@siemens.com X-Original-From: Gokhan Cetin Reply-To: Gokhan Cetin Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: t6C6qpixu/Lt ------=_Part_1226816_331060129.1771437915489 Content-Type: multipart/alternative; boundary="----=_Part_1226817_2005074431.1771437915489" ------=_Part_1226817_2005074431.1771437915489 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I've not investigated the root cause yet but I might have a concrete=20 example for the mentioned issue: I have a recipe which has following masks at postinst to disable sleep=20 states on the target: systemctl mask \ ctrl-alt-del.target \ hibernate.target \ hybrid-sleep.target \ sleep.target \ suspend-then-hibernate.target \ suspend.target At Debian Bookworm, build ends up with "Failed to preset unit, unit=20 /etc/systemd/system/sleep.target is masked.", until =20 "populate-systemd-preset" is opt-out. But I don't have any issue at Debian Trixie. Not sure if this might be a=20 clue. Best, Gokhan On Wednesday, January 14, 2026 at 12:46:44=E2=80=AFPM UTC+3 Heinisch, Alexa= nder=20 wrote: > On Tue, 2026-01-13 at 09:48 -0500, Badrikesh Prusty wrote: > > Disable running populate-systemd-preset at build time by default. > > Although systemd runs enable-only presets at first boot, running this > > step during image creation changes the enabled state of units before > > systemd=E2=80=99s first-boot logic runs,=20 > Why is this a problem? The reasons why to have services prepopulated > are listed here [1]. > > > ignores disable rules, and can cause > ...as is the case with current systemd > > > some services to fail during runtime. > > What's the difference compared to enabling on first-boot? > >=20 > > Downstream users can opt in when preset population is required. > > Imo, having the pre population enabled seems to me a propper default. > If downstream has issues with the prepopulation, for some reason (maybe > you can clarify based on concrete cases) then you always can opt-out > via: ROOTFS_FEATURES:remove =3D "populate-systemd-preset" > > Initially your V1 was about not only enabling but also disabling > services in the postprocessing. What caused the change to neither > populate enabled nor disabled units? As above, maybe a concrete example > helps to understand your requirements. > > BR Alexander > > 1: > > https://github.com/ilbers/isar/blob/master/RECIPE-API-CHANGELOG.md#popula= te-systemd-units-based-on-presets-during-image-postprocessing > > >=20 > > Opt-in: > > ROOTFS_FEATURES:append =3D " populate-systemd-preset" > >=20 > > Signed-off-by: Badrikesh Prusty > > --- > > RECIPE-API-CHANGELOG.md | 14 ++++++++++++++ > > meta/classes-recipe/image.bbclass | 1 - > > 2 files changed, 14 insertions(+), 1 deletion(-) > >=20 > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > > index 0bad8a44..46c8c905 100644 > > --- a/RECIPE-API-CHANGELOG.md > > +++ b/RECIPE-API-CHANGELOG.md > > @@ -962,3 +962,17 @@ INSTALLER_UNATTENDED_ABORT_ENABLE =3D "1" > > # Optional: set countdown timeout in seconds (default 5) > > INSTALLER_UNATTENDED_ABORT_TIMEOUT =3D "5" > > ``` > > + > > +### Make populate-systemd-preset opt-in > > + > > +Running populate-systemd-preset at build time is disabled by > > default. > > +Although systemd runs enable-only presets by default at first boot, > > +running this step at build time changes the enabled state of units > > +before systemd=E2=80=99s first-boot logic runs, ignores disable rules,= and > > +can cause some services to fail during runtime. > > + > > +Downstream users can explicitly enable this feature when preset > > +population is required during image creation. > > + > > +Opt-in: > > + ROOTFS_FEATURES:append =3D " populate-systemd-preset" > > diff --git a/meta/classes-recipe/image.bbclass b/meta/classes- > > recipe/image.bbclass > > index e605bc80..47ed068d 100644 > > --- a/meta/classes-recipe/image.bbclass > > +++ b/meta/classes-recipe/image.bbclass > > @@ -101,7 +101,6 @@ ROOTFS_FEATURES +=3D "\ > > export-dpkg-status \ > > clean-log-files \ > > clean-debconf-cache \ > > - populate-systemd-preset \ > > generate-sbom \ > > " > > ROOTFS_PACKAGES +=3D "${IMAGE_PREINSTALL} > > ${@isar_multiarch_packages('IMAGE_INSTALL', d)}" > > --=20 > Alexander Heinisch > Siemens AG > www.siemens.com > --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= b57081a7-d0ab-49ae-8d88-efb37e17cbbcn%40googlegroups.com. ------=_Part_1226817_2005074431.1771437915489 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi,

I've not investigated the root cause yet but I might have a = concrete example for the mentioned issue:
I have a recipe which has fo= llowing masks at postinst to disable sleep states on the target:

systemctl mask \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ctrl-alt-del.target \=C2=A0 =C2=A0 =C2=A0 =C2=A0 hibernate.target \
=C2=A0 =C2=A0 =C2=A0= =C2=A0 hybrid-sleep.target \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sleep.target= \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 suspend-then-hibernate.target \
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 suspend.target

At Debian Bookworm, b= uild ends up with "Failed to preset unit, unit /etc/systemd/system/sleep.ta= rget is masked.", until=C2=A0 "populate-systemd-preset" is opt-out.
But I don't have any issue at De= bian Trixie. Not sure if this might be a clue.

Best,
Gokhan=

On Wednesday, January 14, 2026 at 12:46:44=E2=80=AFPM UTC+3 Heinisch, Al= exander wrote:
https://github.com/ilbers/isar/blob/master/RECIPE= -API-CHANGELOG.md#populate-systemd-units-based-on-presets-during-image-post= processing

>=20
> Opt-in:
> =C2=A0 ROOTFS_FEATURES:append =3D " populate-systemd-preset&q= uot;
>=20
> Signed-off-by: Badrikesh Prusty <badrikes...@siemens.com>
> ---
> =C2=A0RECIPE-API-CHANGELOG.md=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | 14 ++++++++++++++
> =C2=A0meta/classes-recipe/image.bbclass |=C2=A0 1 -
> =C2=A02 files changed, 14 insertions(+), 1 deletion(-)
>=20
> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> index 0bad8a44..46c8c905 100644
> --- a/RECIPE-API-CHANGELOG.md
> +++ b/RECIPE-API-CHANGELOG.md
> @@ -962,3 +962,17 @@ INSTALLER_UNATTENDED_ABORT_ENABLE =3D "1= "
> =C2=A0# Optional: set countdown timeout in seconds (default 5)
> =C2=A0INSTALLER_UNATTENDED_ABORT_TIMEOUT =3D "5"
> =C2=A0```
> +
> +### Make populate-systemd-preset opt-in
> +
> +Running populate-systemd-preset at build time is disabled by
> default.
> +Although systemd runs enable-only presets by default at first boo= t,
> +running this step at build time changes the enabled state of unit= s
> +before systemd=E2=80=99s first-boot logic runs, ignores disable r= ules, and
> +can cause some services to fail during runtime.
> +
> +Downstream users can explicitly enable this feature when preset
> +population is required during image creation.
> +
> +Opt-in:
> +=C2=A0 ROOTFS_FEATURES:append =3D " populate-systemd-preset&= quot;
> diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-
> recipe/image.bbclass
> index e605bc80..47ed068d 100644
> --- a/meta/classes-recipe/image.bbclass
> +++ b/meta/classes-recipe/image.bbclass
> @@ -101,7 +101,6 @@ ROOTFS_FEATURES +=3D "\
> =C2=A0=C2=A0=C2=A0=C2=A0 export-dpkg-status \
> =C2=A0=C2=A0=C2=A0=C2=A0 clean-log-files \
> =C2=A0=C2=A0=C2=A0=C2=A0 clean-debconf-cache \
> -=C2=A0=C2=A0=C2=A0 populate-systemd-preset \
> =C2=A0=C2=A0=C2=A0=C2=A0 generate-sbom \
> =C2=A0=C2=A0=C2=A0=C2=A0 "
> =C2=A0ROOTFS_PACKAGES +=3D "${IMAGE_PREINSTALL}
> ${@isar_multiarch_packages('IMAGE_INSTALL', d)}"

--=20
Alexander Heinisch
Siemens AG
www.siemens.com

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/b57081a7-d0ab-49ae-8d88-efb37e17cbbcn%40googlegroups.com.
------=_Part_1226817_2005074431.1771437915489-- ------=_Part_1226816_331060129.1771437915489--