Merge pull request #2048 from ruslantum/fix_2047

[WIP] hwclock check missing additional condition on major version
This commit is contained in:
David Murphy 2024-11-21 15:04:10 -07:00 committed by GitHub
commit aca7925571
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3053,7 +3053,7 @@ __install_saltstack_ubuntu_onedir_repository() {
fi
## include hwclock if not part of base OS (23.10 and up)
if [ ! -f /usr/sbin/hwclock ]; then
if [ "$DISTRO_MAJOR_VERSION" -ge 23 ] && [ ! -f /usr/sbin/hwclock ]; then
__PACKAGES="${__PACKAGES} util-linux-extra"
fi