Commit ae6ab0f2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

kernel_update: do not install kernel if it is not installed (for ovz containers)

parent 29367fd3
......@@ -23,6 +23,11 @@ epm_kernel_update()
case $DISTRNAME in
ALTLinux)
load_helper epm-query_package
if ! __epm_query_package kernel-image >/dev/null ; then
info "No installed kernel packages, skipping update"
return
fi
assure_exists update-kernel
sudocmd update-kernel $pkg_filenames
return ;;
......
......@@ -20,6 +20,11 @@
load_helper epm-packages
load_helper epm-search
__epm_query_package()
{
pkg_filenames="$@" quoted_args="$@" quiet=1 epm_query_package
}
epm_query_package()
{
[ -n "$pkg_filenames" ] || fatal "Please, use search with some argument or run epmqa for get all packages."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment