Dracut is installed, but also used?

Ubuntu Version: 25.10

Desktop Environment GNOME

Problem Description:
On my Ubuntu 25.10 i see dracut:
corrado@corrado-ns5-qq-0918:~$ apt list dracut
dracut/questing,questing,now 108-3ubuntu3 all [installed,automatic]

How can I tell if it is currently used for booting or just installed?
Thank you

Dracut is not used for booting but for creating your initramfs image… It should transparently hook into the update-initramfs command without you even noticing…

2 Likes

I am sure @ogra will correct me if I am wrong, but I think you can check with this command:

sudo lsinitramfs /boot/initrd.img-$(uname -r) | grep dracut

On my test 25.10 install, it shows that dracut is being used.

1 Like

Your command shows a lot of occurrences of word dracut but seems just list the libraries containing it. Also the command journalctl -b | grep dracut shows many occurrences but I’m unsure if is just called or governs the boot.
Thanks.

Edit: command journalctl -b | grep dracut shows a lot of occurrences in my 25.10 beta while shows only 6 occurrences in a 25.10 old installation not updated.

Dracut comes with the tool lsinitrd. It shows the content of an image. Without a specified image it shows the content of the default image.

What would be the correct way to check what the OP was asking about?

I think lsinitrd, because if it isn’t a dracut image it might show nothing. I would like to check this but i can’t, because using nothing else than dracut.

in a 25.10 old installation not updated.

corrado@corrado-ns3-qq-0808:~$ lsinitrd
Command 'lsinitrd' not found, but can be installed with:
sudo apt install dracut-core

Dracut-core ist a dependencie for dracut and dracut shoud’nt work without it?!

For clarification, Dracut will only be default for new installs, not for upgrades.

1 Like

@corradoventu

This command should show which process is generating the initramfs:
dpkg -S /usr/sbin/update-initramfs 2>/dev/null | cut -d: -f1

On my new test install of a 25.10 beta it prints dracut, confirming what @ogra mentioned previously.

2 Likes

@eeickmeyer @rubi1200 Thank you very much, now the situation is clear to me

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.