From 048302f06a7dda6920373e90c941778cd6708996 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sun, 2 Feb 2025 08:58:36 -0500 Subject: [PATCH] add systemd-nspawn to the list of container types --- src/helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers.c b/src/helpers.c index 99c45579..21a64e81 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -585,7 +585,8 @@ int in_container(void) "lxc", "docker", "kubepod", - "unshare" + "unshare", + "systemd-nspawn" }; const char *files[] = { "/run/.containerenv",