fix(kickstart): install epel before repo config pkg (#21410)
Ilya Mashchenko committed
Dec 5, 2025 at 15:18 UTC
9417d5644a9aba218d12fd2594a71b5094c7debf
1 file changed
+5
-10
packaging/installer/kickstart.sh
+5
-10
@@ -1787,6 +1787,11 @@ try_package_install() {
1787
fi
1788
fi
1789
1790
+ if ! check_special_native_deps; then
1791
+ warning "Could not find secondary dependencies for ${DISTRO} on ${SYSARCH}."
1792
+ return 2
1793
+ fi
1794
+
1795
# shellcheck disable=SC2086
1796
if ! run_as_root env ${env} ${pm_cmd} ${install_subcmd} ${pkg_install_opts} "${tmpdir}/${repoconfig_file}"; then
1797
warning "Failed to install repository configuration package."
@@ -1808,16 +1813,6 @@ try_package_install() {
1813
exit 0
1814
fi
1815
1811
- if ! check_special_native_deps; then
1812
- warning "Could not find secondary dependencies for ${DISTRO} on ${SYSARCH}."
1813
- if [ -z "${NO_CLEANUP}" ]; then
1814
- progress "Attempting to uninstall repository configuration package."
1815
- # shellcheck disable=SC2086
1816
- run_as_root env ${env} ${pm_cmd} ${uninstall_subcmd} ${pkg_install_opts} "${repoconfig_name}"
1817
- fi
1818
- return 2
1819
- fi
1820
-
1816
if ! netdata_avail_check "${DISTRO_COMPAT_NAME}"; then
1817
warning "Could not find a usable native package for ${DISTRO} on ${SYSARCH}."
1818
if [ -z "${NO_CLEANUP}" ]; then