Commit 48609633 authored by Vitaly Lipatov's avatar Vitaly Lipatov

kernel_update: run remove-old-kernels too

parent b0c40438
#!/bin/sh
#
# Copyright (C) 2013 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2013, 2016 Etersoft
# Copyright (C) 2013, 2016 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
......@@ -28,11 +28,9 @@ epm_kernel_update()
info "No installed kernel packages, skipping update"
return
fi
#assure_exists update-kernel update-kernel 0.9.9
assure_exists update-kernel update-kernel
assure_exists update-kernel update-kernel 0.9.9
sudocmd update-kernel $pkg_filenames || return
# TODO: need update-kernel >= 0.9.9 with correct remove-old-kernels
#sudocmd remove-old-kernels $pkg_filenames
sudocmd remove-old-kernels $pkg_filenames
return ;;
esac
......
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