From dffbe8914734a093b02a1cb0ec0f40adbf3bb109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Tue, 1 Jul 2025 17:32:18 +0200 Subject: [PATCH] Mount Systemd Journal socket to the Supervisor container (#4133) Bind-mount Systemd Journal socket to the Supervisor container. This way Supervisor can use the socket directly for writing log entries using the Systemd native Journal protocol [1] instead of logging to stderr of the container. [1] https://systemd.io/JOURNAL_NATIVE_PROTOCOL/ --- buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor | 1 + 1 file changed, 1 insertion(+) diff --git a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor index 4cbf27c21..8da3308e3 100755 --- a/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor +++ b/buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor @@ -95,6 +95,7 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then --oom-score-adj=-300 \ -v /run/docker.sock:/run/docker.sock:rw \ -v /run/containerd/containerd.sock:/run/containerd/containerd.sock:rw \ + -v /run/systemd/journal/socket:/run/systemd/journal/socket:rw \ -v /run/systemd-journal-gatewayd.sock:/run/systemd-journal-gatewayd.sock:rw \ -v /run/dbus:/run/dbus:ro \ -v /run/supervisor:/run/os:rw \