Slow boot (initrd / dracut-initqueue.service)

My laptop takes about a minute to boot Fedora, considerably slower than it takes to boot other operating systems. I’ve looked around on the forum and see that it’s a recurring issue but haven’t found anyone else where dracut-initqueue.service seems to be the culprit.

I’ve had slow boot for some time on Fedora 32 and it hasn’t been improved since upgrading to Fedora 33.

I’m running on SSD, Intel i7-8 gen, 16 GB RAM and boot typically takes around 60-90 seconds.

$ systemd-analyze
Startup finished in 1.106s (kernel) + 43.243s (initrd) + 14.001s (userspace) = 58.351s 
graphical.target reached after 13.990s in userspace

$ systemd-analyze blame
42.301s dracut-initqueue.service                                                                 
 5.977s NetworkManager-wait-online.service                                                       
 3.217s plymouth-quit-wait.service                                                               
 3.098s systemd-udev-settle.service                                                              
 1.161s fwupd.service                                                                            
  834ms lvm2-monitor.service                                                                     
  748ms upower.service                                                                           
  745ms firewalld.service                                                                        
  485ms initrd-switch-root.service                                                               
  450ms udisks2.service                                                                          
  411ms sssd.service                                                                             
  370ms lvm2-pvscan@259:7.service                                                                
  256ms ModemManager.service                                                                     
  236ms systemd-logind.service                                                                   
  199ms var-lib-snapd-snap-core18-1885.mount                                                     
  194ms avahi-daemon.service                                                                     
  189ms iio-sensor-proxy.service                                                                 
  184ms systemd-resolved.service                                                                 
  181ms rtkit-daemon.service                                                                     
  180ms switcheroo-control.service                                                               
  178ms var-lib-snapd-snap-core18-1932.mount                                                     
  174ms systemd-machined.service                                                                 
  170ms libvirtd.service                                                                         
  167ms initrd-parse-etc.service                                                                 
  166ms var-lib-snapd-snap-spotify-42.mount                                                      
  152ms abrtd.service                                                                            
  151ms cups.service                                                                             
  139ms user@1000.service                                                                        
  133ms var-lib-snapd-snap-snapd-9279.mount                                                      
  132ms systemd-journal-flush.service                                                            
  120ms systemd-vconsole-setup.service                                                           
  115ms var-lib-snapd-snap-spotify-41.mount                                                      
  113ms systemd-udevd.service                                                                    
  111ms systemd-tmpfiles-clean.service                                                           
  111ms polkit.service                                                                           
  105ms systemd-udev-trigger.service                                                             
  103ms var-lib-snapd-snap-pdfmixtool-776.mount                                                  
   98ms dbus-broker.service                                                                      
   96ms var-lib-snapd-snap-snapd-9721.mount                                                      
   89ms dracut-cmdline.service                                                                   
   87ms packagekit.service                                                                       
   68ms systemd-tmpfiles-setup.service                                                           
   63ms var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1506.mount                                    
   59ms var-lib-snapd-snap-pdfmixtool-785.mount                                                  
   47ms livesys.service                                                                          
   46ms var-lib-nfs-rpc_pipefs.mount                                                             
   42ms chronyd.service                                                                          
   41ms vpnagentd.service                                                                        
   39ms systemd-journald.service                                                                 
   35ms NetworkManager.service                                                                   
   35ms systemd-tmpfiles-setup-dev.service                                                       
   34ms dev-loop3.device                                                                         
   33ms dracut-pre-pivot.service                                                                 
   33ms accounts-daemon.service                                                                  
   33ms netcf-transaction.service                                                                
   33ms systemd-fsck@dev-disk-by\x2duuid-5EBF\x2d3376.service                                    
   33ms dev-loop4.device                                                                         
   32ms import-state.service                                                                     
   32ms auditd.service                                                                           
   32ms dev-loop2.device                                                                         
   31ms dev-loop1.device                                                                         
   30ms sssd-kcm.service                                                                         
   28ms systemd-binfmt.service                                                                   
   28ms dracut-pre-udev.service                                                                  
   27ms dev-mapper-fedora_localhost\x2d\x2dlive\x2dswap.swap                                     
   27ms systemd-fsck-root.service                                                                
   26ms systemd-rfkill.service                                                                   
   26ms dev-loop5.device                                                                         
   25ms colord.service                                                                           
   25ms swap-create@zram0.service                                                                
   24ms flatpak-system-helper.service                                                            
   23ms livesys-late.service                                                                     
   23ms systemd-fsck@dev-mapper-fedora_localhost\x2d\x2dlive\x2dhome.service                     
   22ms gssproxy.service                                                                         
   21ms systemd-random-seed.service                                                              
   19ms plymouth-start.service                                                                   
   19ms systemd-fsck@dev-disk-by\x2duuid-46ca08fd\x2dbe23\x2d4bd8\x2d9393\x2d628f467c8be2.service
   18ms systemd-modules-load.service                                                             
   18ms systemd-remount-fs.service                                                               
   17ms plymouth-switch-root.service                                                             
   16ms user-runtime-dir@1000.service                                                            
   15ms dev-hugepages.mount                                                                      
   15ms plymouth-read-write.service                                                              
   14ms boot-efi.mount                                                                           
   14ms dev-mqueue.mount                                                                         
   14ms gdm.service                                                                              
   13ms systemd-backlight@backlight:intel_backlight.service                                      
   13ms sys-kernel-debug.mount                                                                   
   13ms dev-loop6.device                                                                         
   13ms initrd-cleanup.service                                                                   
   12ms kmod-static-nodes.service                                                                
   12ms systemd-sysctl.service                                                                   
   11ms systemd-user-sessions.service                                                            
   11ms nfs-convert.service                                                                      
   11ms wpa_supplicant.service                                                                   
   11ms dev-zram0.swap                                                                           
   11ms home.mount                                                                               
   10ms dev-loop0.device                                                                         
   10ms proc-sys-fs-binfmt_misc.mount                                                            
    9ms sysroot.mount                                                                            
    9ms systemd-update-utmp.service                                                              
    9ms systemd-update-utmp-runlevel.service                                                     
    8ms dev-loop8.device                                                                         
    7ms boot.mount                                                                               
    7ms rpc-statd-notify.service                                                                 
    7ms initrd-udevadm-cleanup-db.service                                                        
    6ms dracut-shutdown.service                                                                  
    6ms tmp.mount                                                                                
    5ms iscsi-shutdown.service                                                                   
    4ms sys-fs-fuse-connections.mount                                                            
    4ms docker.socket                                                                            
    2ms dev-loop7.device                                                                         
    2ms sys-kernel-config.mount                                                                  
    1ms snapd.socket

$ systemd-analyze critical-chain   
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @13.990s
└─multi-user.target @13.990s
  └─plymouth-quit-wait.service @10.771s +3.217s
    └─systemd-user-sessions.service @10.753s +11ms
      └─remote-fs.target @10.748s
        └─remote-fs-pre.target @10.748s
          └─nfs-client.target @4.795s
            └─gssproxy.service @4.771s +22ms
              └─network.target @4.766s
                └─wpa_supplicant.service @5.397s +11ms
                  └─dbus-broker.service @4.031s +98ms
                    └─dbus.socket @3.972s
                      └─sysinit.target @3.969s
                        └─systemd-update-utmp.service @3.957s +9ms
                          └─auditd.service @3.923s +32ms
                            └─systemd-tmpfiles-setup.service @3.852s +68ms
                              └─import-state.service @3.818s +32ms
                                └─local-fs.target @3.814s
                                  └─var-lib-snapd-snap-core18-1885.mount @3.613s +199ms
                                    └─dev-loop8.device @3.805s +8ms
1 Like

Could this be related to snapd?
There are various opinions against using snaps.
Try to replace it with flatpak if possible.

I’m having the same issue (after upgrading to Fedora 34). dracut-initqueue.service uses 1min 30s in my case. I have completely removed snapd, but unfortunately it didn’t help.

Output from sudo service dracut-initqueue status after boot:

Redirecting to /bin/systemctl status dracut-initqueue.service
○ dracut-initqueue.service - dracut initqueue hook
     Loaded: loaded (/usr/lib/systemd/system/dracut-initqueue.service; static)
     Active: inactive (dead) since Sun 2021-06-27 14:31:42 CEST; 1h 49min left
       Docs: man:dracut-initqueue.service(8)
   Main PID: 547 (code=exited, status=0/SUCCESS)
        CPU: 0

Jun 27 14:30:12 grumpy systemd[1]: Starting dracut initqueue hook...
Jun 27 14:30:12 grumpy dracut-initqueue[565]: Scanning devices nvme1n1p6  for LVM logical volumes fedora/root
Jun 27 14:30:12 grumpy dracut-initqueue[565]: fedora/swap
Jun 27 14:30:12 grumpy dracut-initqueue[586]: inactive          '/dev/fedora/root' [<259.86 GiB] inherit
Jun 27 14:30:12 grumpy dracut-initqueue[586]: inactive          '/dev/fedora/swap' [15.66 GiB] inherit
Jun 27 14:31:42 grumpy dracut-initqueue[588]: WARNING: D-Bus notification failed: Transport endpoint is not connected
Jun 27 14:31:42 grumpy systemd[1]: Finished dracut initqueue hook.
Jun 27 14:31:42 grumpy systemd[1]: dracut-initqueue.service: Deactivated successfully.
Jun 27 14:31:42 grumpy systemd[1]: Stopped dracut initqueue hook.
1 Like

Same problem after updating my system.

In the past, there seems to have been a bug with the 245 version of systemd; which version are y’all running? You can check with $ systemctl --version.

There are also some dracut troubleshooting steps you can take to find out more.

That seems to be related to the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=1976653
There a workaround that seems to work in there. I “fixed” the problem by downgrading dracut and forcing it to rebuild the initramfs file as described in the link.

2 Likes

same here, it is stuck for a minute or so:

However, booting kernel 5.12.11 is fine, the problem only occurs with 5.12.12 and above

1 Like

Same thing here. Last good kernel version was 5.12.11.
Waiting for a fix, the following lines did the trick nicely:

# cp /usr/lib/systemd/system/dbus-broker.service /etc/systemd/system/
# diff /usr/lib/systemd/system/dbus-broker.service /etc/systemd/system/dbus-broker.service
5c5
< After=dbus.socket sysinit.target
---
> After=dbus.socket
# dracut -f
# reboot

Just wasted a whole bunch of hours trying every fix listed for this that I could find on the internet. Tried reinstalling the OS a couple times too. No luck. 90 second delay because dracut.initqueue. I restart very frequently, so this is a dealbreaker for me. Gotta abandon Fedora for now. Would love any ideas on potential fixes.

You are posting on a thread that is over a year closed and was for a user running fedora 33. Fedora 36 is the current release (with kernel 5.18.13) and soon approaching fedora 37.

Things have changed drastically with the last 3 releases so please open your own thread and we will be glad to provide assistance.

its verry weird to request new threads for identical error`s.
I wil make a new thead.

Could you paste the link for new thread, as I’m currently facing the identical issue in my Fedora 36 with kernel 5.19.14