Hello everyone! I have laptop HP 255 G7 which have AMD A6-9225 CPU and Radeon R4 (Stoney) GPU.
I have problem with dracut. It include all amdgpu drivers to initramfs and it slow down boot proces, systemd-analyze says initrd phase taking 19 seconds.
Can I somehow set up sracut to include only stoney binary?
I already using hostonly parameter with strict mode, it give me 60 MB init image from 80. omit_drivers parameter, as i know, exclude drivers from image.
Could you please tell more how I can use this parameter to solve my problem?
If you already have trimmed the initrd down to only those drivers that your host actually requires, then the issue is probably not the initial ram fs, it’ll be everything else starting up alongside it.
As @barryascott notes, have a look at the blame file and the plot output and see what’s taking a long time.
I’m confused. Do you use the amdgpu driver?
Your default target is the graphical.target?
If so why is loading in from the initrd slowing your boot time down?
The initrd time is not important as a metric as systemd is starting service once initrd is loaded. On my system services show up being started about .5s after the initrd loads.
Yes, I’m using the amdgpu driver, and yes, the default target is graphical.target.
I also checked the boot time on Debian, and the boot issue was present there as well.
On Debian, I also tried removing plymouth, which requires loading the amdgpu drivers into the initrd to run, and that helped speed up the boot process. Debian does not display inird time in `systemd-analyze` output but it reduced boot time for 10 seconds
But I think removing plymouth is good solution, so I want just remove unused amdgpu drivers from initrd if it possible.
omit_drivers+=" <kernel modules> "
Specify a space-separated list of kernel modules
not to add to the initramfs. The kernel modules
have to be specified without the ".ko" suffix.
Notice the space after the first " character and before the last ".
You to identify the modules to omit, which would be specific to your system.
I do not have plymouth and my initramfs does not have any GPU drivers in it. But 1.3s after boot amdgpu is loaded, I assume from my root partition /lib/modules/$(uname -r) where I see a amdgpu.ko.xz.