Added support for Debain Distros 9/10
This commit is contained in:
Родитель
9e28f44228
Коммит
06046831b9
|
@ -14,6 +14,10 @@ recover_suse() {
|
||||||
|
|
||||||
recover_ubuntu() {
|
recover_ubuntu() {
|
||||||
kernel_version=$( zgrep linux-image /var/log/dpkg.log* | grep installed | cut -d' ' -f5 | cut -d':' -f1 | sed -e 's/linux-image-//' | grep ^[1-9] | sort -V | tail -n 1)
|
kernel_version=$( zgrep linux-image /var/log/dpkg.log* | grep installed | cut -d' ' -f5 | cut -d':' -f1 | sed -e 's/linux-image-//' | grep ^[1-9] | sort -V | tail -n 1)
|
||||||
|
# This is needed on Debian only
|
||||||
|
if [[ -e /boot/initrd.img-${kernel_version} ]]; then
|
||||||
|
rm /boot/initrd.img-${kernel_version}
|
||||||
|
fi
|
||||||
update-initramfs -k "$kernel_version" -c
|
update-initramfs -k "$kernel_version" -c
|
||||||
update-grub
|
update-grub
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче