From 415165975a8b0cccbc6f7b648792d023b220bdc5 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 25 Oct 2023 14:19:26 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E5=85=B3=E9=97=AD=20kexec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reinstall.sh b/reinstall.sh index 95b4e23..1bccb89 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -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