Here is simple solution

pacman -Qqen > pkglist.txt
pacman --force -S $(< pkglist.txt)
mkinitcpio -p linux