Skip to content

Commit

Permalink
Mark kernel as supporting memory hotplug
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Oct 10, 2023
1 parent 25d1e09 commit 981f95d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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@

0 comments on commit 981f95d

Please sign in to comment.