Skip to contentSkip to conversation

run-postinsts.service: Removed --no-reload.

PATCH New [email protected] 1 participant 1 message May 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 run-postinsts.service: Removed --no-reload.

From: Lei Maohui <[email protected]>

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.

---
 .../run-postinsts/run-postinsts/run-postinsts.service           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service +1 -1
index b6b81d5c1a..1ce19abcaf 100644
@@ -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
 
Signature · 1 line
2.25.1