modprobe: show builtin label on --show-depends
authorDave Reisner <dreisner@archlinux.org>
Mon, 27 Feb 2012 20:59:09 +0000 (15:59 -0500)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 27 Feb 2012 21:49:36 +0000 (18:49 -0300)
commitaa5da52c3ba4bb770c2a96067ef9c2f90472d615
tree4c62cbddee5df78218f7cd58a8b9341252bdd698
parentee1d188f70574b626090c417ff75cd0dbf6cfa27
modprobe: show builtin label on --show-depends

Previously, we didn't handle builtins very well, displaying things like:

$ modprobe -D btrfs
insmod /lib/modules/3.2.6-foo/kernel/crypto/crc32c.ko.gz
insmod (null)
insmod /lib/modules/3.2.6-foo/kernel/lib/libcrc32c.ko.gz
insmod /lib/modules/3.2.6-foo/kernel/lib/zlib_deflate/zlib_deflate.ko.gz
insmod /lib/modules/3.2.6-foo/kernel/fs/btrfs/btrfs.ko.gz

Follow module-init-tools and show builtins with the label 'builtin' and
their name:

$ modprobe -D btrfs
insmod /lib/modules/3.2.6-foo/kernel/crypto/crc32c.ko.gz
builtin intel_crc32c
insmod /lib/modules/3.2.6-foo/kernel/lib/libcrc32c.ko.gz
insmod /lib/modules/3.2.6-foo/kernel/lib/zlib_deflate/zlib_deflate.ko.gz
insmod /lib/modules/3.2.6-foo/kernel/fs/btrfs/btrfs.ko.gz
tools/kmod-modprobe.c