fix(resolvers): put DNSStubListener=no in resolved.conf.d, not unit dropins

Butane unit dropins write to /etc/systemd/system/<unit>.d/, but
DNSStubListener is a systemd-resolved config option that belongs in
/etc/systemd/resolved.conf.d/. Use storage.files instead so Ignition
places it in the correct location.
This commit is contained in:
Graham McIntire 2026-07-24 11:21:10 -05:00
parent 28e119cee2
commit 8018ce0eb1
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 12 additions and 12 deletions

View file

@ -25,6 +25,12 @@ storage:
inline: |
nameserver 1.1.1.1
nameserver 9.9.9.9
- path: /etc/systemd/resolved.conf.d/no-stub.conf
mode: 0644
contents:
inline: |
[Resolve]
DNSStubListener=no
- path: /etc/systemd/network/00-eth0.network
mode: 0644
contents:
@ -118,12 +124,6 @@ storage:
systemd:
units:
- name: systemd-resolved.service
dropins:
- name: no-stub.conf
contents: |
[Resolve]
DNSStubListener=no
- name: docker.service
enabled: true
- name: unbound.service

View file

@ -25,6 +25,12 @@ storage:
inline: |
nameserver 1.1.1.1
nameserver 9.9.9.9
- path: /etc/systemd/resolved.conf.d/no-stub.conf
mode: 0644
contents:
inline: |
[Resolve]
DNSStubListener=no
- path: /etc/systemd/network/00-eth0.network
mode: 0644
contents:
@ -118,12 +124,6 @@ storage:
systemd:
units:
- name: systemd-resolved.service
dropins:
- name: no-stub.conf
contents: |
[Resolve]
DNSStubListener=no
- name: docker.service
enabled: true
- name: unbound.service