Following Please try out dracut and the specification [Spec] Switch to Dracut we are going to support Dracut as alternative to initramfs-tools as initrd generation tool in Ubuntu 25.04 (plucky). We want to make Dracut the default in the following Ubuntu 25.10.
How to switch to Dracut
If you are running Ubuntu 25.04 (plucky) you can decide to switch from initramfs-tools to Dracut. The following steps are designed to be easy and safe to revert back.
-
Check the ‘Known Issues’ section if your setup is known not to work. In this case, you can stop here and wait for them to be fixed.
-
Ensure that you have a backup initrd available to boot. Unless it is a fresh installation, there should be two kernels and corresponding initrds. The
ls
command shows all the initrds on your system:
ls -alh /boot/initrd.img-*
If there is only one initrd, create a backup of your current initrd:
sudo cp /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r).orig
Note: Having a fallback is important in case booting with Dracut fails or in case generating the initrd with initramfs-tools fails when booted with a Dracut initrd (see bug #2084809 for such an example).
- Check if you have custom initramfs-tools hooks/scripts installed:
dpkg-query -W | grep -Ew '(clevis-initramfs|zfs-initramfs)'
You will need to install the equivalent dracut module packages:
initramfs hook package | Dracut module package |
---|---|
clevis-initramfs | clevis-dracut |
zfs-initramfs | zfs-dracut |
- Install dracut:
clevis_dracut=$(dpkg -s clevis-initramfs >/dev/null 2>&1 && echo clevis-dracut)
zfs_dracut=$(dpkg -s zfs-initramfs >/dev/null 2>&1 && echo zfs-dracut)
sudo apt install dracut $clevis_dracut $zfs_dracut
Important: The initramfs-tools
package will be removed. If more packages are removed and you are unsure, please let me know or file a bug against dracut.
Note: You can also remove the initramfs-tools-bin
and initramfs-tools-core
packages.
- Reboot
Reboot your machine. In case your system fails to boot, use the fallback boot entry. In case you only had one initrd in step 2, use the backed up initrd: If you use GRUB, edit the GRUB boot entry and change the initrd line to the backup by adding .orig
to the initrd name.
Reporting failures
Please check if your problem is already reported. See the known issues listed below and https://bugs.launchpad.net/ubuntu/+source/dracut for all reported bug. If your problem is not reported there yet, please report it using ubuntu-bug dracut
.
Known issues
-
encrypted ZFS: dracut does not support booting from an encrypted ZFS volume
-
kdump-tools: kdump tools X dracut doesn’t work
-
flash-kernel: dracut install removes flash-kernel