diff options
author | Matthew Booth <mbooth@redhat.com> | 2009-07-31 14:30:09 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2009-07-31 14:30:09 +0100 |
commit | 8647c4ada502d0ce2b940f9e9cd47378d99a9164 (patch) | |
tree | 79d52b07fe1da8f3d75c57eccc057b6e7875c9b3 /perl | |
parent | 686f28dd7eb98c17aa98c981adf64c53af99e125 (diff) | |
download | libguestfs-8647c4ada502d0ce2b940f9e9cd47378d99a9164.tar.gz libguestfs-8647c4ada502d0ce2b940f9e9cd47378d99a9164.tar.xz libguestfs-8647c4ada502d0ce2b940f9e9cd47378d99a9164.zip |
Update incorrect comment in Lib.pm
Related: change the name of the function the comment describes to be more
accurate.
Diffstat (limited to 'perl')
-rw-r--r-- | perl/lib/Sys/Guestfs/Lib.pm | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index be17a303..bbc583fe 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -1342,7 +1342,7 @@ sub inspect_in_detail _check_for_applications ($g, $os); _check_for_kernels ($g, $os); if ($os->{os} eq "linux") { - _check_for_modprobe_aliases ($g, $os); + _find_modprobe_aliases ($g, $os); _check_for_initrd ($g, $os); } } @@ -1436,16 +1436,14 @@ sub _check_for_kernels $os->{kernels} = \@kernels; } -# Check /etc/modprobe.conf to see if there are any specified -# drivers associated with network (ethX) or hard drives. Normally -# one might find something like: -# -# alias eth0 xennet -# alias scsi_hostadapter xenblk -# -# XXX This doesn't look beyond /etc/modprobe.conf, eg. in /etc/modprobe.d/ +# Find all modprobe aliases. Specifically, this looks in the following +# locations: +# * /etc/conf.modules +# * /etc/modules.conf +# * /etc/modprobe.conf +# * /etc/modprobe.d/* -sub _check_for_modprobe_aliases +sub _find_modprobe_aliases { local $_; my $g = shift; |