From: Richard Jones Date: Fri, 5 Jun 2009 14:51:14 +0000 (+0100) Subject: Modules are *.o in Linux 2.4 kernels. X-Git-Tag: 1.0.42~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=0b3b482542319bf329974397c99b8c0663b9e536;p=libguestfs.git Modules are *.o in Linux 2.4 kernels. --- diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl index 6d3c472..e51bfdd 100755 --- a/inspector/virt-inspector.pl +++ b/inspector/virt-inspector.pl @@ -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; } }