Recognize debian bullseye as having "broken" resolv.conf

Debian bullseye also has the loopback resolv.conf that needs special
handling.
This commit is contained in:
justinsb 2021-12-10 08:41:01 -05:00
parent 9fbe66051f
commit 689f66a390
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ func (d *Distribution) HasLoopbackEtcResolvConf() bool {
// Ubuntu > 16.04 has it
return d.version > 16.04
}
// TODO: Should we read /etc/resolv.conf??
if d.IsDebianFamily() {
// Bullseye has it
return d.version >= 11.0
}
return false
}