mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
parent
5e8ecb42fe
commit
5b133fe6ef
1
trans.sh
1
trans.sh
@ -2566,7 +2566,6 @@ disable_selinux_kdump() {
|
||||
# yum reinstall kernel-core # 重新安装新内核
|
||||
# cat /boot/loader/entries/* # 依然有 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M
|
||||
|
||||
sed -i 's/crashkernel=[^ ]*/crashkernel=no/' $os_dir/etc/default/grub
|
||||
chroot $os_dir grubby --update-kernel ALL --args crashkernel=no
|
||||
# el7 上面那条 grubby 命令不能设置 /etc/default/grub
|
||||
sed -i 's/crashkernel=[^ "]*/crashkernel=no/' $os_dir/etc/default/grub
|
||||
|
Loading…
x
Reference in New Issue
Block a user