Ask Your Question

How to make dracut regenerate initramfs for only one kernel

asked 2016-05-24 03:33:50 -0500

gnufreex gravatar image

I have Fedora 23 and RHEL 7.2 installed. Fedora is updated since 20.

I have dracut timeout error during boot afer removing swap partition and resizing root on LVM drive.

I need to regenerate initramfs. but dracut --force --regenerate-all command is regenerating all old fedora kernels that I deleted ages ago. So it makes my /boot full before it regenerates current kernel.

How to make dracut regenerate only one kernel initramfs?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-25 01:27:21 -0500

geforce gravatar image

Running this will build initramfs for the running kernel

dracut -fv

or for non running kernels (change versions to suit)

dracut -fv /boot/initramfs-4.6.0-3.fc24.x86_64.img 4.6.0-3.fc24.x86_64
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-05-24 03:33:50 -0500

Seen: 21,108 times

Last updated: May 25 '16