core: 关闭 kexec

This commit is contained in:
bin456789 2023-10-25 14:19:26 +08:00
parent 7f71f9d962
commit 415165975a
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -1307,6 +1307,12 @@ else
cp_to_btrfs_root /reinstall-vmlinuz
cp_to_btrfs_root /reinstall-initrd
fi
# 有的机器开启了 kexec例如腾讯云轻量 debian要禁用
if [ -f /etc/default/kexec ]; then
sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' /etc/default/kexec
fi
$(command -v grub-reboot grub2-reboot) reinstall
fi