[arch-projects] [mkinitcpio][PATCH 03/10] functions: refactor add_module

Tom Gundersen teg at jklm.no
Mon Jun 6 15:05:14 EDT 2011


On Mon, Jun 6, 2011 at 5:30 PM, Dave Reisner <d at falconindy.com> wrote:
> Simplify and fix a few bugs in the process. We rely solely on modinfo
> for obtaining information about module location, dependencies and
> firmware. Add a small wrapper function for modinfo that will always
> specify our $BASEDIR and $KERNELVERSION for us.
>
> Also, kill off HAS_MODULES. Since we have ADDED_MODULES, which contains
> all currently added modules, we can count the elements in this when it
> comes time to decide to create depmod files.
>
> Signed-off-by: Dave Reisner <d at falconindy.com>

> +    #explicit module depends
> +    case "$module" in
> +        fat) add_module "nls_cp437" ;;
> +        ocfs2) add_module "configfs" ;;
> +        libcrc32c) add_module "crc32c"; add_module "crc32c_intel" ;;
> +    esac

Are these workaround for kernel bugs? Maybe a comment to explain would
be in order? Is it fixed, in what version? Link to bugzilla?

-t


More information about the arch-projects mailing list