Re: CentOS 7, systemd,, and message floods

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Once upon a time, Brian Mathis <brian.mathis+centos@xxxxxxxxxxxxxxx> said:
> if grep -q debug /proc/cmdline; then
>     echo "Kernel and systemd debugging was enabled as part of an errant
> script during the yum update"
>     echo "See https://bugs.centos.org/view.php?id=12425 and
> https://wiki.centos.org/HowTos/Grub2";
> fi

Assuming your GRUB entries are in the usual order (newest kernel first),
you can do:

grub2-set-default "$(grep '^menuentry' /boot/grub2/grub.cfg | grep -v debug | head -n 1 | cut -d\' -f2)"

and then reboot.
-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux