Red Hat Bugzilla – Bug 1310447
Mysterious 8 second delay after grub and before booting
Last modified: 2016-07-20 23:21:12 EDT
Created attachment 1129068 [details]
I have installed Fedora 23 (KDE spin) on an HP Prodesk mini 600 G2. After grub comes up, I press <enter> on any kernel to boot, the screen goes black with a blinking underscore cursor and then there is a mysterious 8 second delay with no messages and no hard drive/SSD activity during that period. Then after the 8 seconds, BAM, there is a flurry of activity over the next 4 seconds and it is finished booting. Try as I may, I can't figure out what that delay is. But I know it shouldn't be there. I am doing nothing special. No RAID, no encryption, just two partitions (root and swap).
Things that made no difference: I uninstalled Plymouth.I tried UEFI vs. Legacy. I tried a Fedora live boot DVD instead of booting from the SDD install. I tried same thing with USB key boot. Same thing with M.2 PCI SSD boot. Disabled a bunch of stuff like abrtd and ModemManager. Removed the "quiet" and other flags in the kernel invocation. Rebuilt default initrd with dracut. Also tried the debug kernel. I even tried replacing grub with isolinux. All have the exact same 8 second pause.
I tried booting Fedora 23 on our Lenovo laptops as well (a totally different machine with different chipset and other hardware) and there is an 8 second delay on those too. Then I tried Fedora 21 on both the HP Prodesk and Lenovo laptops- same 8 second delay! But if I try a different distro, like Archbang, there is no such delay at all- 4 second boot from pressing <enter> in grub.
I thought maybe "systemd-analyze" would help, but it doesn't show that delay... it says "4.3 seconds" which is the time AFTER the 8 second delay. Same thing when I tried init=/usr/lib/systemd/systemd-bootchart, no additional useful information. Will attach (although not sure it will be useful).
It is a shame that what could be a 4 second boot is taking 12 seconds (300% slowe than it should be). But what makes it much worse is that there are zero messages or feedback to the user during those 8 seconds... which is a long time for the machine to look and act dead.
Created attachment 1129069 [details]
Hundreds and hundreds of updates later and still no change. But since then, Fedora 24 has come out, so I tried it as a test. The mysterious boot delay doesn't happen on 24 with those machines. Fedora 23 is what we are still using and rolling out so it is still an issue for us.
Turns out there were additional BIOS updates for the HP mini's which I missed. Installed them and, to my surprise, the 8 second delay is now completely gone! I tried several tests to make sure it wasn't any Fedora 23 updates, and it wasn't. No idea why it helped, but at least the problem is finally solved.