From 8f07647b1ebe288bd1c0e785a97ac82b38301349 Mon Sep 17 00:00:00 2001 From: Ruslan Tumarkin Date: Tue, 19 Nov 2024 18:48:40 +0100 Subject: [PATCH] fix issue 2047 hwclock check missing additional condition on major version --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index d4fa965e8..5f2d6816c 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3032,7 +3032,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