diff options
author | Clayton Casciato <majortomtosourcecontrol@gmail.com> | 2025-05-19 19:21:03 -0600 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-05-25 15:13:53 -0400 |
commit | 5f059c9e1c2ac607d9f3318b432182ccc6ef83fb (patch) | |
tree | b0fc89397ccf414a4f153626a071d0a6df97efdf | |
parent | f923958ac8dd494ff3a183d7030b6bc0558e0e06 (diff) | |
download | meta-security-master-next.tar.gz |
suricata: drop pkg_postinst_ontarget systemd initmaster-next
/var/log/suricata initialization is handled by
systemd-tmpfiles-setup.service, which occurs before services like
suricata
Work towards resolving:
ERROR: [...] do_rootfs: The following packages could not be configured
offline and rootfs is read-only: ['100-suricata']
Added in commit 36d656fe7244 ("suricata: add tmpfiles.d config")
systemd testing:
root@beaglebone-yocto:~# ls -d /var/log/suricata
/var/log/suricata
root@beaglebone-yocto:~# systemctl enable suricata
Created symlink '/etc/systemd/system/multi-user.target.wants/suricata.service' -> '/usr/lib/systemd/system/suricata.service'.
root@beaglebone-yocto:~# rmdir /var/log/suricata
root@beaglebone-yocto:~# reboot now
root@beaglebone-yocto:~# ls -d /var/log/suricata
/var/log/suricata
root@beaglebone-yocto:~# journalctl -o short-iso-precise -u systemd-tmpfiles-setup -u suricata
2025-05-20T00:45:46.450027+00:00 beaglebone-yocto systemd[1]: Starting Create System Files and Directories...
[...]
2025-05-20T00:45:47.041049+00:00 beaglebone-yocto systemd[1]: Finished Create System Files and Directories.
2025-05-20T00:45:47.542976+00:00 beaglebone-yocto systemd[1]: Started Suricata IDS/IDP daemon.
[...]
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-ids/suricata/suricata_7.0.0.bb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes-ids/suricata/suricata_7.0.0.bb b/recipes-ids/suricata/suricata_7.0.0.bb index dc55fdf..f2df09e 100644 --- a/recipes-ids/suricata/suricata_7.0.0.bb +++ b/recipes-ids/suricata/suricata_7.0.0.bb | |||
@@ -131,9 +131,7 @@ do_install () { | |||
131 | } | 131 | } |
132 | 132 | ||
133 | pkg_postinst_ontarget:${PN} () { | 133 | pkg_postinst_ontarget:${PN} () { |
134 | if command -v systemd-tmpfiles >/dev/null; then | 134 | if [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then |
135 | systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/suricata.conf | ||
136 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | ||
137 | ${sysconfdir}/init.d/populate-volatile.sh update | 135 | ${sysconfdir}/init.d/populate-volatile.sh update |
138 | fi | 136 | fi |
139 | } | 137 | } |