I ran into something with a recent batch of updates on CentOS 7. It seems that possibly one of the kernel updates running dracut changed all of the volume groups in the grub.cfg file making the system unable to boot until I manually edited each line putting it back to the way it was originally. My volume group is called vg_h1 but it changed them all to the default “centos”.
Is there a config somewhere I need to edit so this never happens again?
Steffan A. Cline steffan@hldns.com 602-793-0014
I’ve looked and looked and can’t seem to find anything which would explain why grub.cfg would have been rewritten with a whole new volume group name.
Suggestions?
Steffan A. Cline steffan@hldns.com 602-793-0014
On Aug 21, 2018, at 11:27 PM, Steffan A. Cline steffan@hldns.com wrote:
I ran into something with a recent batch of updates on CentOS 7. It seems that possibly one of the kernel updates running dracut changed all of the volume groups in the grub.cfg file making the system unable to boot until I manually edited each line putting it back to the way it was originally. My volume group is called vg_h1 but it changed them all to the default “centos”.
Is there a config somewhere I need to edit so this never happens again?
Steffan A. Cline steffan@hldns.com 602-793-0014
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Just as I saw your email as grep found it.
[root@hxx grub2]# cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet" GRUB_DISABLE_RECOVERY="true" GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=1024M,max:1024M cpuinfo com1=115200,8n1 console=com1,tty loglvl=all guest_loglvl=all" GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT="console=hvc0 earlyprintk=xen nomodeset”
Looks like if I update it here, I’m safe or is there somewhere else I should be looking?
Steffan A. Cline steffan@hldns.com 602-793-0014
On Aug 29, 2018, at 2:15 PM, mark m.roth@5-cent.us wrote:
Steffan A. Cline wrote:
I’ve looked and looked and can’t seem to find anything which would explain why grub.cfg would have been rewritten with a whole new volume group name.
Suggestions?
C6 or C7? In either case, have you looked in /etc/default/grub?
mark
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos