LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CentOS7 won't boot after motherboard swap. UEFI? dracut-initqueue timeouts... (https://www.linuxquestions.org/questions/linux-software-2/centos7-wont-boot-after-motherboard-swap-uefi-dracut-initqueue-timeouts-4175575311/)

gargunkle 03-18-2016 07:51 PM

CentOS7 won't boot after motherboard swap. UEFI? dracut-initqueue timeouts...
 
3 Attachment(s)
I'm not sure if this should be hardware or software. Trying here first.

I have an install of CentOS 7.2. It was previously on a Supermicro X7SPA-HF motherboard and the intent was to move it to a Gigabyte GA-C1037UN motherboard.

The BIOS has a number of options for UEFI vs. Legacy. I think I've really only used legacy to this point, and am unfamiliar with UEFI.

When I try to boot a normal kernel, I get the normal load bar but I am informed that it is doing something with dracut, which I really don't think it did before. (See image 1)

If I hit escape to watch the boot process, it gets to a point and hangs for a while (See image 2).

Then after a while (120-130 seconds I presume) it starts spamming dracut-initqueue errors (See image 3).

Interestingly, if I pick rescue mode, it boots mostly okay but I lack most of the kernel modules I need.

Do I need to rebuilt some sort of initramfs? I've never had to do this type of thing before. I would appreciate any input.

Edit: I meant to mention that the motherboard BIOS does have some options for UEFI vs. Legacy. I've tried Legacy Only, UEFI, and a combination of each, but nothing seems to get over this main issue.

Edit 2: meant to mention that I did not do a new OS install. I just moved the hard drive from the old system to the new, which normally works.

Thank you!

gargunkle 03-18-2016 08:14 PM

I think this is fixed. Apparently all I needed was

yum install grub2-efi grub2-efi-modules shim

followed by

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg


All times are GMT -5. The time now is 05:30 AM.