/etc/resolver/dhcp_host_domain_ng.py broken in TurrisOS 5.0.0
Trying out the hbt
branch on Turris Omnia.
/etc/turris-version: 5.0.0
knot-resolver - 5.0.1-1.0
resolver-conf - 0.0.1-38.2
When running /etc/resolver/dhcp_host_domain_ng.py
, nothing happens and the following gets logged:
turris dhcp_host_domain_ng.py: Kresd is probably not running no socket found.
I checked the source and it's due to this snippet:
def _get_socket_path(self):
path = os.path.join(uci_get("resolver.kresd.rundir"), "tty")
try:
files = [f for f in listdir(path)]
return os.path.join(path, files[0])
except:
log("Kresd is probably not running no socket found.", LOG_ERR)
sys.exit(1)
But note that kresd
does not create the tty
directory any longer, it is named control
:
# tree /tmp/kresd
/tmp/kresd
├── control
│ └── 32112
├── data.mdb
├── hints.tmp
└── lock.mdb
Once I manually edit the script to use control
, then it works:
turris dhcp_host_domain_ng.py: Refresh kresd leases