mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
The previous lineinfile-with-backrefs negative-lookahead regex was not appending NVIDIA parameters when missing. Switch to a clearer approach: slurp the file, extract the current GRUB_CMDLINE_LINUX value, build a merged target value that appends missing NVIDIA params, then write back the line. lineinfile sees no diff when the target matches the current line, preserving idempotency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>