Skip to content

Commit aca7925

Browse files
authored
Merge pull request #2048 from ruslantum/fix_2047
[WIP] hwclock check missing additional condition on major version
2 parents b37f1d8 + 007c966 commit aca7925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrap-salt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3053,7 +3053,7 @@ __install_saltstack_ubuntu_onedir_repository() {
30533053
fi
30543054

30553055
## include hwclock if not part of base OS (23.10 and up)
3056-
if [ ! -f /usr/sbin/hwclock ]; then
3056+
if [ "$DISTRO_MAJOR_VERSION" -ge 23 ] && [ ! -f /usr/sbin/hwclock ]; then
30573057
__PACKAGES="${__PACKAGES} util-linux-extra"
30583058
fi
30593059

0 commit comments

Comments
 (0)