mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Previously the task hardcoded GRUB_CMDLINE_LINUX to a fixed string containing nymph's rd.luks.uuid, rootflags and apparmor parameters, clobbering whatever the host had. Switch to an idempotent lineinfile-with-backrefs loop that appends nouveau.modeset=0 and nvidia-drm.modeset=1 only when missing, preserving the existing kernel cmdline. grub-mkconfig now runs only when the cmdline changed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>