openwrt / openwrt/packages

chrony: maxsources directive is only respected for pools named "pool"

Open
#29,158 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

chrony

Maintainer

@mlichvar

OpenWrt Version

25.12.2

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce
  1. Add a pool with any name other than "pool" (including no name)
  2. Set a maxsources directive for the pool
  3. Commit the changes and restart chronyd
Actual Behaviour

No maxsources directive appears on the pool line in /var/etc/chrony.d/10-uci.conf.

The check on line 48 in chronyd.init should probably test against $sourcetype rather than $cfg?

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect chronyd.init, especially the check on line 48, and compare it with how the pool source type is handled. Reproduce the configuration using a pool with a non-"pool" name and a maxsources directive, then restart chronyd and verify that /var/etc/chrony.d/10-uci.conf contains maxsources on the pool line.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.