From 2d4c1df31fe62489bc064a712e32e590114b204f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 30 Dec 2024 20:31:16 -0700 Subject: [PATCH] [NixOS] Log runc outputs --- nixos/overlay.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/overlay.nix b/nixos/overlay.nix index b21d44d7..ee160bd7 100644 --- a/nixos/overlay.nix +++ b/nixos/overlay.nix @@ -32,7 +32,9 @@ final: prev: echo "\$(date) - runc invoked with: \$@" >> /var/log/debug/runc/invocations.log # 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 chmod +x "$out/bin/runc"