[Pkg-libvirt-commits] [libguestfs] 45/156: builder: Fedora: Enable Xen driver support.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:25:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit b8076d9b6750c4a0d09061732fb74a6c1ab0d0e6
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Thu Jun 12 13:49:43 2014 +0100
builder: Fedora: Enable Xen driver support.
See:
https://www.redhat.com/archives/libguestfs/2014-June/thread.html#00045
Notes:
(1) Edit dracut configuration to make sure the change is permanent, in
case kickstart, virt-builder or something else installs a kernel or
runs dracut.
(2) We need to run dracut on the just-installed kernel, not on the
running kernel. The snippet to do this was copied from the Fedora
cloud kickstart.
Thanks: Olaf Hering, George Dunlap, Dario Faggioli.
(cherry picked from commit 0fa52e4e45d80874bc5ea5f112f74be1d3f3472f)
---
builder/website/fedora.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/builder/website/fedora.sh b/builder/website/fedora.sh
index a9dcef6..8702f5d 100755
--- a/builder/website/fedora.sh
+++ b/builder/website/fedora.sh
@@ -60,6 +60,16 @@ poweroff
%packages
@core
%end
+
+%post
+# Enable Xen domU support:
+pushd /etc/dracut.conf.d
+echo 'add_drivers+="xen:vbd xen:vif"' > virt-builder-xen-drivers.conf
+popd
+# Rerun dracut for the installed kernel (not the running kernel):
+KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
+dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
+%end
EOF
# Clean up function.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list