Openembedded Core Discussions
 help / color / mirror / Atom feed
* About an issue of run-postinsts.service
@ 2024-05-23  3:00 Maohui Lei (Fujitsu)
  2024-05-23  6:23 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Maohui Lei (Fujitsu) @ 2024-05-23  3:00 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

Hi, 

After systemd has been upgraded to version 255.*, if users add a package with a postsints script(e.g. gnutls-fips), the following warning would output when execute systemd in the first boot.
-----------------------------------------------------------------------
root@qemux86-64:~# systemctl status syslog.socket
* syslog.socket - Syslog Socket
     Loaded: loaded (/usr/lib/systemd/system/syslog.socket; static)
     Active: active (running) since Wed 2024-05-22 06:06:41 UTC; 5min ago
   Triggers: * busybox-syslog.service
       Docs: man:systemd.special(7)
             https://www.freedesktop.org/wiki/Software/systemd/syslog
     Listen: /run/systemd/journal/syslog (Datagram)
     CGroup: /system.slice/syslog.socket

Notice: journal has been rotated since unit was started, output may be incomplete.
Warning: The unit file, source configuration file or drop-ins of syslog.socket changed on disk. Run 'systemctl daemon-reload' to reload units.
-----------------------------------------------------------------------

I found that the option "--no-reload" in run-postinsts.service causes the issue. Systemd255 needs to reload unites even "enable/disable" units.
------------------------------------------------------------------------
root@qemux86-64:~# systemctl --version
systemd 255 (255.4^)

root@qemux86-64:~# systemctl --no-reload disable sshd.socket
Removed "/etc/systemd/system/sockets.target.wants/sshd.socket".
root@qemux86-64:~# systemctl status sshd.socket

sshd.socket
   Loaded: loaded (/usr/lib/systemd/system/sshd.socket; disabled; preset: enabled)
   Active: active (listening) since Thu 2024-05-16 02:11:17 UTC; 8min ago
   Listen: [::]:22 (Stream)
 Accepted: 0; Connected: 0;
  Process: 193 ExecStartPre=/usr/bin/mkdir -p /var/run/sshd (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 258)
   Memory: 584.0K (peak: 1.4M)
      CPU: 389ms
   CGroup: /system.slice/sshd.socket

May 16 02:11:17 qemux86-64 systemd[1]: Starting sshd.socket...
May 16 02:11:17 qemux86-64 systemd[1]: Listening on sshd.socket.
Warning: The unit file, source configuration file or drop-ins of sshd.socket changed on disk. Run 'systemctl daemon-reload' to reload units.
------------------------------------------------------------------------

And I tested by qemu and on PC, there is no issue that mentioned in the patch(fd266b1b66844d660ebd8e33fe22c08c8ddaccbf) which added "--no-reload " in run-postinsts.service.
So, can I submit a patch to delete the "--no-reload " from run-postinsts.service?

Best regards
Lei

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-24  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-23  3:00 About an issue of run-postinsts.service Maohui Lei (Fujitsu)
2024-05-23  6:23 ` [OE-core] " Alexander Kanavin
2024-05-23 17:13   ` Max
2024-05-24  0:48     ` Maohui Lei (Fujitsu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox