On Thu, Jun 12, 2014 at 08:49:30AM -0500, Chris Adams wrote:
Once upon a time, Richard W.M. Jones rjones@redhat.com said:
However although this creates the /etc/dracut.conf.d/xen-drivers.conf file in the guest, it doesn't add the Xen drivers to the initramfs. (I also tried running dracut --add-drivers ... but that does nothing).
The initramfs is built during package install, before your %post runs. You will need to rebuild the initramfs after configuring dracut.
Right. Actually the problem was a bit more subtle. I was just running "dracut", which rebuilds the initramfs of the running kernel, not the *installed* kernel.
I copied this snipped from the Fedora cloud images kickstart:
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') /sbin/dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
and used it instead of the dracut command (see my original email).
Thanks,
Rich.