--- /dev/null
+# configuration file for xen.efi
+
+[global]
+default=linux
+
+[linux]
+#options=com1=115200,8n1 console=com1,vga
+kernel=vmlinuz console=tty0 console=hvc0
+ramdisk=initrd
+
+[linux-old]
+#options=com1=115200,8n1 console=com1,vga
+kernel=vmlinuz.old console=tty0 console=hvc0
+ramdisk=initrd.old
--- /dev/null
+ENABLED=yes
+LABEL="Xen native EFI"
+ARCH=@target_cpu@
+BINARY=xen.efi
+ARGS=""
+
+install_files() {
+
+ update_file @libdir@/efi/xen.efi xen.efi
+ update_file /etc/efi-boot/xen.cfg xen.cfg
+
+ update_file /boot/initrd initrd
+ update_file /boot/vmlinuz vmlinuz
+
+ update_file --missingok /boot/initrd.old initrd.old
+ update_file --missingok /boot/vmlinuz.old vmlinuz.old
+}
Source54: xendomains.init
Source55: xen.logrotate
Source56: xen.tmpfiles
+Source57: xen.cfg
+Source58: xen.efi-boot-update
Patch0: %{name}-python_scripts.patch
Patch1: %{name}-symbols.patch
Patch2: %{name}-curses.patch
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \
- $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir},/var/log/xen/console}
+ $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir},/var/log/xen/console} \
+ $RPM_BUILD_ROOT/etc/efi-boot/update.d
%{__make} -j1 install-xen install-tools install-stubdom install-docs \
%{!?with_ocaml:OCAML_TOOLS=n} \
install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen
install %{SOURCE56} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/xen.conf
+%if %{with efi}
+install %{SOURCE57} $RPM_BUILD_ROOT/etc/efi-boot/xen.cfg
+sed -e's;@libdir@;%{_libdir};g' -e's;@target_cpu@;%{_target_cpu};g' \
+ %{SOURCE58} > $RPM_BUILD_ROOT/etc/efi-boot/update.d/xen.conf
+%endif
+
mv $RPM_BUILD_ROOT/etc/xen/{x{m,l}example*,examples}
# for %%doc
%defattr(644,root,root,755)
%dir %{_libdir}/efi
%{_libdir}/efi/*.efi
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/xen.cfg
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/xen.conf
%endif