From 981f95dfe850ed75954ef5b42fee117ea6ef5279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 10 Oct 2023 03:10:27 +0200 Subject: [PATCH] Mark kernel as supporting memory hotplug QubesOS/qubes-issues#7956 --- kernel.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel.spec.in b/kernel.spec.in index 342936e2..978aa1ae 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -535,6 +535,9 @@ if [ -e /usr/lib/dracut/modules.d/90qubes-vm-simple/xen-scrub-pages-supported ]; def_kernelopts="$def_kernelopts xen_scrub_pages=0" fi echo "$def_kernelopts " > %buildroot/%vm_install_dir/default-kernelopts-common.txt +%if 0%{?fedora} >= 37 +touch %buildroot/%vm_install_dir/memory-hotplug-supported +%endif # Create a dummy modules.img with roughly the size the real one will have. # That way, rpm will know that this package requires some additional @@ -688,6 +691,9 @@ exit 0 %attr(0644, root, root) %vm_install_dir/initramfs %attr(0644, root, root) %vm_install_dir/vmlinuz %attr(0644, root, root) %vm_install_dir/default-kernelopts-common.txt +%if 0%{?fedora} >= 37 +%attr(0644, root, root) %vm_install_dir/memory-hotplug-supported +%endif %changelog @CHANGELOG@