#1123806 nvidia-container-toolkit-base: Syntax error in nvidia-cdi-refresh.service: unknown escape sequence

#1123806#5
Date:
2025-12-22 00:56:04 UTC
From:
To:
Dear Maintainer,

The nvidia-cdi-refresh.service file contains a systemd syntax error on line
26.

* What led up to the situation?
Standard system boot on Debian Sid.

* What was the outcome of this action?
The systemd journal reports:
"Ignoring unknown escape sequences: \"/(nvi...\""

* What outcome did you expect instead?
A clean boot without syntax warnings.

* Analysis and Fix:
The ExecCondition line uses a single backslash to escape a dot for grep:
ExecCondition=/usr/bin/grep -qE '/(nvidia|nvidia-current)\.ko[:]' ...

Systemd parses backslashes as its own escape characters. To pass a literal
backslash to the grep command, it must be doubled.

Suggested Fix:
Change line 26 to:
ExecCondition=/usr/bin/grep -qE '/(nvidia|nvidia-current)\\.ko[:]'
/lib/modules/%v/modules.dep