Skip to content

Commit

Permalink
pkg/lib/get-timesync-backend.py: Add '/lib' to root directories list
Browse files Browse the repository at this point in the history
Extend list of root directories to parse with new entry: '/lib'. On
most systems this is just a symlink to '/usr/bin' and everything works
as expected, but it may not be the case for custom distributions,
i.e. ones created using Yocto.

Extending the list fixes problems with Time Management tab on such
systems.

Signed-off-by: Witold Lipieta <[email protected]>
  • Loading branch information
wl-thaumatec committed Oct 9, 2023
1 parent 170f062 commit 6a7d850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/get-timesync-backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# get-timesync-backend - determine which NTP backend unit timedatectl
# will likely enable.

roots = ["/etc", "/run", "/usr/local", "/usr/lib"]
roots = ["/etc", "/run", "/usr/local", "/usr/lib", "/lib"]


def gather_files(name, suffix):
Expand Down

0 comments on commit 6a7d850

Please sign in to comment.