Skip to content

Commit

Permalink
Mark kernel as supporting memory hotplug
Browse files Browse the repository at this point in the history
QubesOS/qubes-issues#7956

(cherry picked from commit 981f95d)
marmarek committed Oct 14, 2023

Verified

This commit was signed with the committer’s verified signature.
marmarek Marek Marczykowski-Górecki
1 parent 5cf7939 commit 417330f
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
@@ -537,6 +537,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
@@ -690,6 +693,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 417330f

Please sign in to comment.