From: "'Prusty, Badrikesh' via isar-users" <isar-users@googlegroups.com>
To: "Heinisch, Alexander" <alexander.heinisch@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"wzh@ilbers.de" <wzh@ilbers.de>
Cc: "Kiszka, Jan" <jan.kiszka@siemens.com>,
"MOESSBAUER, Felix" <felix.moessbauer@siemens.com>,
"Cetin, Gokhan" <gokhan.cetin@siemens.com>
Subject: RE: [PATCH v7] image-postproc: gate systemd preset-all on masked unit state
Date: Thu, 6 Aug 2026 06:30:27 +0000 [thread overview]
Message-ID: <TYZPR06MB509755F2EA339D0CEF3138B591D22@TYZPR06MB5097.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <523277bfe9f93b4cdfb2a63b4c8f23607a7371f0.camel@siemens.com>
Hi,
Apologies for delayed response.
> The proposed handling below is not a replacement for masking the unit,
> but a fix for the error you experienced during preset-all.
>
> Based on the example you gave, that would result in something like:
>
> ```
> cat meta-isar/recipes-example/no-ctrl-alt-del/files/postinst
> #!/bin/sh
>
> systemctl mask ctrl-alt-del.target
>
> echo "disable reboot.target" > /usr/lib/systemd/system-preset/00-
> reboot-target-mask.preset
> ```
>
I tried the suggested solution, and it is working as expected, the build completed
without any issues.
Initially there was concern this might affect systemctl reboot or reboot commands,
but both works as expected. Found out reboot.target is merely an alias for ctrl-alt-del.target,
and the actual reboot is performed by system-reboot.service which remains unaffected.
```
$ cat /usr/lib/systemd/system/reboot.target
[Unit]
Description=System Reboot
Documentation=man:systemd.special(7)
DefaultDependencies=no
Requires=systemd-reboot.service
After=systemd-reboot.service
AllowIsolate=yes
JobTimeoutSec=30min
JobTimeoutAction=reboot-force
[Install]
Alias=ctrl-alt-del.target
```
Many thanks,
Badri
--
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 email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/TYZPR06MB509755F2EA339D0CEF3138B591D22%40TYZPR06MB5097.apcprd06.prod.outlook.com.
prev parent reply other threads:[~2026-08-06 6:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 13:02 'Badrikesh Prusty' via isar-users
2026-06-15 9:02 ` Zhihang Wei
2026-06-19 20:37 ` 'Heinisch, Alexander' via isar-users
2026-06-20 4:35 ` 'Prusty, Badrikesh' via isar-users
2026-07-01 9:41 ` 'Heinisch, Alexander' via isar-users
2026-07-14 4:05 ` 'Prusty, Badrikesh' via isar-users
2026-07-14 5:08 ` 'Heinisch, Alexander' via isar-users
2026-08-06 6:30 ` 'Prusty, Badrikesh' via isar-users [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TYZPR06MB509755F2EA339D0CEF3138B591D22@TYZPR06MB5097.apcprd06.prod.outlook.com \
--to=isar-users@googlegroups.com \
--cc=alexander.heinisch@siemens.com \
--cc=badrikesh.prusty@siemens.com \
--cc=felix.moessbauer@siemens.com \
--cc=gokhan.cetin@siemens.com \
--cc=jan.kiszka@siemens.com \
--cc=wzh@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox