Modules are *.o in Linux 2.4 kernels.
authorRichard Jones <rjones@redhat.com>
Fri, 5 Jun 2009 14:51:14 +0000 (15:51 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 5 Jun 2009 14:51:14 +0000 (15:51 +0100)
inspector/virt-inspector.pl

index 6d3c472..e51bfdd 100755 (executable)
@@ -630,7 +630,7 @@ sub check_for_kernels
                # List modules.
                my @modules;
                foreach ($g->find ("/lib/modules/$_")) {
-                   if (m,/([^/]+)\.ko,) {
+                   if (m,/([^/]+)\.ko$, || m,([^/]+)\.o$,) {
                        push @modules, $1;
                    }
                }