OK, so up until last night I had a perfectly working system that I installed a year or two ago, on a Ryzen 2600, AMD X470, SataSSD. But somewhere in between 'I haven't emerged for 109 days', 'python2 is EOL', 'profile 17.0 is deprecated', and a thousand blocking packages, I managed to completely bork everything, unistalled the wrong package and deleted portage or something equally stupid.
Anyway, that's not the problem. I've been around gentoo for 15 years or so, so I just took the excuse to reinstall from scratch (nothing else to do in lockdown I suppose).
The last install (that I just overwrote) I did 2 years ago I just did as I always do, fdisk and MBR and all that. And that worked fine.
But, totally unrelatedly, I also installed Windows10 LTSC a while ago. And dual-booting with that was really annoying, I had to get into the bios twice, once to change between UEFI/BIOS-boot modes, then again to select the boot drive (because my bios is stupid and literally didn't give me both win and lin in the same boot menu at once).
So, I took the excuse to do it differently this time and try GPT and EFI (seeing as the handbook says I should have been using it since 2010, I thought it's about time).
Followed the handbook, all good, compiled kernel, all good, installed grub, all good, etc, etc, fine, rebooted.
Now, it boots fine. It gets to 'INIT: version 2.97 booting' and 'Press I to enter interactive boot mode'.
Does a dozen lines after that.
The first time I booted, it hung on 'Setting HW Clock to current time' (or vice-versa).
So I went back to the live-usb, chrooted again etc. (all that still works, emerge while chrooted works fine). Compiled a new kernel with max log levels 15/15/7 to see if I could get any other info. While I was there, I deleted 'hwclock' from rc just in case that was the problem.
Rebooted, back to the new install, same thing. Just hangs. Last one it hangs on is:
'Checking local filesystems ...
/sbin/fsck.xfs: XFS file system.
fsck.fat 4.1 (2017-01-24)
_'
Now, I don't think it's the fsck (nor the hwclock) that's the problem, I think it's whatever is coming after that. And I'm not fast enough to hit the I for Interactive either (tried a few times already).
In the first instance, how can I add more debug into the OpenRC system?
Now, the reason I think this is a Ryzen EFI issue is twofold: One is that this system was working fine last night, the only thing I changed is going to UEFI/GPT instead of the previously-working BIOS/MBR.
The other reason is that I've seen this before. I bought a new mini-itx system for work (Ryzen 3400G / M.2 Sata / B550 IIRC) a while ago, and thought I'd play around putting Gentoo on it (before the guy who it was meant to be for got back from holidays and put on the Fedora that he wanted).
Anyway, when I did that, I initially did the bog-standard fdisk/MBR-route as has been tattooed in my brain for 20 years. But the bios on the mobo had no 'legacy mode' and so didn't even recognise it as a boot device. So I reinstalled it as UEFI/GPT. And the exact same thing happened. OpenRC started, got a few lines in, then just hangs. Never got around to figuring out or fixing the problem because at that point my colleague came back from holidays and blew it all away to put Fedora on.
So I'm thinking that it's also possible, but I couldn't find anything searching around here (15 years later and the forum search still sucks: it either finds zero or thousands of hits), that there's some sort of issue with Ryzens and/or UEFI and/or GPT that just doesn't work? I'm sure there are more than a few Ryzen users around here, did anyone else have this issue and/or do something specal to get it working?


