Dracut 109 + 3cpio + reinstall-kernels: Target directory '.' is not empty

Hi, when I try to reinstall-kernels with 3cpio instead of cpio and dracut latest version (109), this error arise:

Target directory ‘.’ is not empty. Use –force to overwrite existing files!

Thanks for the help.

I would open an issue with 3cpio. If 3cpio and dracut-cpio are providing different outcomes, that probably needs investigation.

I haven’t been familiar with 3cpio until now. And I ask myself in which way the package would integrate into dracut.

All that I can find is dracut --enhanced-cpio

Summary

Attempt to use the dracut-cpio binary, which optimizes archive creation for copy-on-write filesystems by using the man:copy_file_range[2] syscall via Rust’s io::copy(). When specified, initramfs archives are also padded to ensure optimal data alignment for extent sharing. To retain reflink data deduplication benefits, this should be used alongside the –no-compress and –nostrip parameters, with initramfs source files, –tmpdir staging area and destination all on the same copy-on-write capable filesystem.

On my install, dracut-cpio isn’t even available. (And that’s dracut 109_eos-1)

Did you look in /usr/lib/dracut/dracut-cpio