mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-22 04:09:53 +00:00
core: 关闭 kexec
This commit is contained in:
parent
7f71f9d962
commit
415165975a
@ -1307,6 +1307,12 @@ else
|
|||||||
cp_to_btrfs_root /reinstall-vmlinuz
|
cp_to_btrfs_root /reinstall-vmlinuz
|
||||||
cp_to_btrfs_root /reinstall-initrd
|
cp_to_btrfs_root /reinstall-initrd
|
||||||
fi
|
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
|
$(command -v grub-reboot grub2-reboot) reinstall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user