From 5b133fe6eff0421ef3de70366bbc3de0ac303d6d Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 6 Sep 2024 23:00:36 +0800 Subject: [PATCH] =?UTF-8?q?centos:=20=E4=BF=AE=E5=A4=8D=20/etc/default/gru?= =?UTF-8?q?b=20=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #141 --- trans.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/trans.sh b/trans.sh index a150e9f..3e2672f 100644 --- a/trans.sh +++ b/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