Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
virt-v2v
follow_default_kernel_symlink.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File follow_default_kernel_symlink.patch of Package virt-v2v
Index: virt-v2v-0.9.1/lib/Sys/VirtConvert/Converter/Linux.pm =================================================================== --- virt-v2v-0.9.1.orig/lib/Sys/VirtConvert/Converter/Linux.pm +++ virt-v2v-0.9.1/lib/Sys/VirtConvert/Converter/Linux.pm @@ -500,9 +500,9 @@ sub list_kernels my @kernels; - # Start by adding the default kernel + # Start by adding the default kernel (symlink target only) my $default = $self->get_default_image(); - push(@kernels, $default) if length($default) > 0; + push(@kernels, ($g->realpath($default))) if (length($default) > 0 ); # This is how the grub2 config generator enumerates kernels foreach my $kernel ($g->glob_expand('/boot/kernel-*'), @@ -2898,6 +2898,9 @@ sub _supports_virtio "virtio_blk" => 0 ); + # Skip if undefined kernel version + return 0 if (!defined($kernel)); + # Search the installed kernel's modules for the virtio drivers foreach my $module ($g->find("/lib/modules/$kernel")) { foreach my $driver (keys(%checklist)) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor