From dc0975a1e5582eb316ee34a0364bfa693c927f54 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Thu, 9 Oct 2014 18:13:23 -0500 Subject: [PATCH] add xen-kernel to /etc/sysconfig/ for grub kernel autoinstall --- SOURCES/xen-kernel | 2 ++ SPECS/xen.spec | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 SOURCES/xen-kernel diff --git a/SOURCES/xen-kernel b/SOURCES/xen-kernel new file mode 100644 index 0000000..5b6d899 --- /dev/null +++ b/SOURCES/xen-kernel @@ -0,0 +1,2 @@ +BOOT_XEN_AS_DEFAULT="yes" +XEN_KERNEL_MBARGS="--mbargs=dom0_mem=1024M,max:1024M loglvl=all guest_loglvl=all" diff --git a/SPECS/xen.spec b/SPECS/xen.spec index 5ebd21e..9e6b2dd 100644 --- a/SPECS/xen.spec +++ b/SPECS/xen.spec @@ -19,7 +19,7 @@ Summary: Xen is a virtual machine monitor Name: xen Version: 4.2.5 -Release: 35%{?dist} +Release: 36%{?dist} Group: Development/Libraries License: GPLv2+ and LGPLv2+ and BSD URL: http://xen.org/ @@ -55,6 +55,7 @@ Source48: libexec.xendomains Source49: tmpfiles.d.xen.conf Source101: blktap-9960138790b9d3610b12acd153bba20235efa4f5.tar.gz +Source102: xen-kernel Patch1: xen-initscript.patch Patch4: xen-dumpdir.patch @@ -412,6 +413,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/sysconfig install -m 644 %{SOURCE30} %{buildroot}%{_sysconfdir}/sysconfig/xenstored install -m 644 %{SOURCE31} %{buildroot}%{_sysconfdir}/sysconfig/xenconsoled install -m 644 %{SOURCE32} %{buildroot}%{_sysconfdir}/sysconfig/blktapctrl +install -m 644 %{SOURCE102} %{buildroot}%{_sysconfdir}/sysconfig/xen-kernel # systemd %if %with_systemd @@ -578,6 +580,8 @@ rm -rf %{buildroot} %config(noreplace) %{_sysconfdir}/%{name}/xend-* # xm config %config(noreplace) %{_sysconfdir}/%{name}/xm-* +# xen-kernel config +%config(noreplace) %{_sysconfdir}/xen-kernel # Guest autostart links %dir %attr(0700,root,root) %{_sysconfdir}/%{name}/auto # Autostart of guests @@ -812,6 +816,9 @@ rm -rf %{buildroot} %endif %changelog +* Thu Oct 9 2014 Johnny Hughes - 4.2.5-36.el6.centos +- added /etc/sysconfig/xen-kernel for auto grub install options + * Wed Oct 8 2014 George Dunlap - 4.2.5-35.el6.centos - Remove %{ix86} and ia64 build targets to build with the community build system -- 2.39.5