diff --git a/perl/lib/NeedRestart/CONT/LXC.pm b/perl/lib/NeedRestart/CONT/LXC.pm index 283d6285..3f522ae9 100644 --- a/perl/lib/NeedRestart/CONT/LXC.pm +++ b/perl/lib/NeedRestart/CONT/LXC.pm @@ -81,7 +81,7 @@ sub check { } # look for LXC cgroups - return unless($cg =~ /^\d+:[^:]+:\/lxc(?:.payload)?\/([^\/\n]+)($|\/)/m); + return unless($cg =~ /^\d+:[^:]+:\/lxc(?:.payload)?[.\/]([^\/\n]+)($|\/)/m); my $name = $1; my $type = ($self->{has_lxd} && -d qq($self->{lxd_container_path}/$name) ? 'LXD' : 'LXC');