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)) {