3
# Copyright (C) 2013, 2016, 2017 Etersoft
4
# Copyright (C) 2013, 2016, 2017 Vitaly Lipatov <lav@etersoft.ru>
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU Affero General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Affero General Public License for more details.
16
# You should have received a copy of the GNU Affero General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
load_helper epm-check_updated_repo
21
load_helper epm-sh-warmup
29
info "Updating system kernel to the latest version..."
31
case $BASEDISTRNAME in
33
load_helper epm-query_package
34
if ! __epm_query_package kernel-image >/dev/null ; then
35
info "No installed kernel packages, skipping update"
38
assure_exists update-kernel update-kernel 0.9.9
39
sudocmd update-kernel $dryrun $(subst_option non_interactive -y) $force $interactive $reinstall $verbose "$@" || return
40
#docmd epm remove-old-kernels "$@" || fatal
46
docmd epm install kernel
49
echo "Skipping: kernel package will update during dist-upgrade"
52
fatal "Have no suitable command for $PMTYPE"