[opensuse-kernel] [PATCH] rpm/kernel-obs-build.spec.in: use get_kernel_version
--- rpm/kernel-obs-build.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm/kernel-obs-build.spec.in b/rpm/kernel-obs-build.spec.in index ac42e13..42febe6 100644 --- a/rpm/kernel-obs-build.spec.in +++ b/rpm/kernel-obs-build.spec.in @@ -116,9 +116,9 @@ ROOT="" -k /boot/vmlinuz-xen -M /boot/System.map-*-xen -i /tmp/initrd.xen %endif %else -dracut --host-only --drivers="$KERNEL_MODULES" --force /tmp/initrd.kvm `echo /boot/%{kernel_name}-*-default | sed -n -e 's,[^-]*-\(.*-default\),\1,p'` +dracut --host-only --drivers="$KERNEL_MODULES" --force /tmp/initrd.kvm `get_kernel_version /boot/%{kernel_name}-*-default` %ifarch %ix86 x86_64 -dracut --host-only --drivers="$KERNEL_MODULES xenblk" --force /tmp/initrd.xen `echo /boot/%{kernel_name}-*-xen | sed -n -e 's,[^-]*-\(.*-xen\),\1,p'` +dracut --host-only --drivers="$KERNEL_MODULES xenblk" --force /tmp/initrd.xen `get_kernel_version /boot/%{kernel_name}-*-xen` %endif %endif -- 2.1.0 -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (1)
-
Andreas Schwab