diff mbox series

[V2] run-postinsts.service: Removed --no-reload.

Message ID 20240527025640.123884-1-leimaohui@fujitsu.com
State New
Headers show
Series [V2] run-postinsts.service: Removed --no-reload. | expand

Commit Message

Maohui Lei (Fujitsu) May 27, 2024, 2:56 a.m. UTC
From: Lei Maohui <leimaohui@fujitsu.com>

A warning will be output when users execute systemctl in the first boot
if there are any postsints scripts in image.

"Warning: The unit file, source configuration file or drop-ins of xxx changed
on disk. Run 'systemctl daemon-reload' to reload units."

This warning is because after systemd has been upgraded to 255,
reloading units operation is needed even when "enable/disable" units by
 systemctl.

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 .../run-postinsts/run-postinsts/run-postinsts.service           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
index b6b81d5c1a..1ce19abcaf 100644
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
@@ -7,7 +7,7 @@  Before=sysinit.target
 [Service]
 Type=oneshot
 ExecStart=#SBINDIR#/run-postinsts
-ExecStartPost=#BASE_BINDIR#/systemctl --no-reload disable run-postinsts.service
+ExecStartPost=#BASE_BINDIR#/systemctl disable run-postinsts.service
 RemainAfterExit=yes
 TimeoutSec=0