regenerate initramfs after moving boot partition

Do you still have a F21 install media?

If so do the following:

boot to "troubleshooting" > Rescue a Fedora System

Allow for mounting (normally not r/o)

chroot /mnt/sysimage 

dracut --regenerate-all -f && grub2-mkconfig -o /boot/grub2/grub.cfg

If you are sure it is not throwing errors on the dracut --regenerate-all previous made (i.e. ls /boot shows them but won't boot) just rebuild grub with the second command.

~ Sent from a Fedora 22 box


try the following link instructions:

https://ask.fedoraproject.org/en/question/57752/how-do-i-regenerate-my-initramfs/

scan for logical volumes first:

vgscan vgchange -ay

Find swap partitions:

blkid|grep swap

and an example:

/dev/mapper/fedora-swap: UUID="28d71a2c-1b34-4115-aa19-083373ec4d8a" TYPE="swap"

Edit /etc/fstab to use the swap partition, here's an example: nano /etc/fstab

/dev/mapper/fedora-swap swap swap defaults 0 0

To regenerate all initramfs, do:

dracut --regenerate-all --force