Use plain version (without release) as vm-kernel subdir

This prevent breaking VM settings when using non-default kernel version.
This commit is contained in:
Marek Marczykowski 2011-07-09 23:45:24 +02:00
parent 3bce01fb11
commit 8ec4b09134

View File

@ -19,7 +19,7 @@
%define build_src_dir %my_builddir/linux-%version
%define src_install_dir /usr/src/kernels/%kernelrelease
%define kernel_build_dir %my_builddir/linux-obj
%define vm_install_dir /var/lib/qubes/vm-kernels/%kernelrelease
%define vm_install_dir /var/lib/qubes/vm-kernels/%version
%(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes})
@ -401,7 +401,7 @@ umount /tmp/qubes-modules-%kernelrelease
rmdir /tmp/qubes-modules-%kernelrelease
mv /tmp/qubes-modules-%kernelrelease.img %vm_install_dir/modules.img
qvm-set-default-kernel %{kernelrelease}
qvm-set-default-kernel %version
%files qubes-vm
%defattr(-, root, root)