[NixOS] Log runc outputs

This commit is contained in:
2024-12-30 20:31:16 -07:00
parent 0f1895c5d2
commit 2d4c1df31f

View File

@@ -32,7 +32,9 @@ final: prev:
echo "\$(date) - runc invoked with: \$@" >> /var/log/debug/runc/invocations.log echo "\$(date) - runc invoked with: \$@" >> /var/log/debug/runc/invocations.log
# Hand off control to the original runc from prev.runc. # Hand off control to the original runc from prev.runc.
exec ${prev.runc}/bin/runc "\$@" ${prev.runc}/bin/runc --debug "\$@" > \
>(tee -a /var/log/debug/runc/stdout.log) \
2> >(tee -a /var/log/debug/runc/stderr.log >&2)
EOF EOF
chmod +x "$out/bin/runc" chmod +x "$out/bin/runc"