Skip to content

Commit

Permalink
Fix modules.img relabeling for .0 mainline release
Browse files Browse the repository at this point in the history
Mainline release like 5.19 or 6.0 really are 5.19.0 or 6.0.0. Use
appropriate macro in the genfs call that takes this into account.
  • Loading branch information
marmarek committed Oct 15, 2022
1 parent dcbf75e commit 4752f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ PATH=/usr/sbin:/sbin:$PATH mkfs.ext3 -F "-Enum_backup_sb=0,root_owner=0:0$flags"
-d %buildroot%vm_install_dir/modules %buildroot%vm_install_dir/modules.img 512M

%if 0%{?fedora} >= 32
SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH %{_builddir}/genfs %buildroot%vm_install_dir/modules.img %{VERSION}-%{RELEASE}.%{_arch} immutable=yes
SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH %{_builddir}/genfs %buildroot%vm_install_dir/modules.img %kernelrelease immutable=yes
e2fsck -pDfE optimize_extents -- %buildroot%vm_install_dir/modules.img
resize2fs -M -- %buildroot%vm_install_dir/modules.img
e2fsck -pDfE optimize_extents -- %buildroot%vm_install_dir/modules.img
Expand Down

0 comments on commit 4752f09

Please sign in to comment.