Skip to content

luci-app-chrony: add driftfile section - #9139

Open
drizt wants to merge 1 commit into
openwrt:masterfrom
drizt:chrony_driftfile
Open

drizt wants to merge 1 commit into
openwrt:masterfrom
drizt:chrony_driftfile

Conversation

@drizt

@drizt drizt commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Pull request details

Description

It adds ui options for new section in chrony uci file. See openwrt/packages#30799.

Screenshot or video of changes (if applicable)

Screenshot_20261018_132848

Maintainer (preferred)

@systemcrash


Tested on

OpenWrt version: OpenWrt 25.12.5 r33051-f5dae5ece4

LuCI version: LuCI (HEAD detached at 128a781) branch (26.180.75667~128a781)

Web browser(s): Firefox 158.0 (64-bit)


Checklist

  • (Nice to have) Includes what Issue it closes (e.g. openwrt/luci#issue-number).
  • (Nice to have) Includes what it depends on (e.g. openwrt/packages#pr-number in sister repo).

@openwrt openwrt Bot added the not following guidelines Pull request does not follow formatting guidelines label Oct 18, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit.


Generated by Claude Code

insertTypedSectionOptions(m, s, o, 'dhcp_ntp_server', features);

// Drift file
s = m.section(form.NamedSection, 'driftfile', 'driftfile', _('Drift file'),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On upgraded systems /etc/config/chrony is kept and won't have a driftfile section. Without addremove a NamedSection then shows only its title and description, with no options and no way to create the section (renderContents in form.js:4268-4295). Should this set s.addremove = true like allow/nts, or does openwrt/packages#30799 add a uci-defaults script that creates the section?


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch to chrony allready had uci-defaults file which creates new section when omited.

This commit adds 3 new options: Restore system time, Drift file path and
Update interval. These options directly linked with options from uci
config.

Signed-off-by: Ivan Romanov <drizt72@zoho.eu>
@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Oct 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants