Package: nvidia-container-toolkit-base
Version: 1.18.1-1
Severity: minor
Tags: patch

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

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.12+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to