Skip to content

dkms add does not copy dot-files #538

@ian-abbott

Description

@ian-abbott

My tarball contains a .tarball-version file in the top-level source directory, that is used to set the version number internally. However, dkms's add_source_tree() function uses the command cp -fr "$from"/* "$source_tree/$module-$module_version", which does not match the dot-files in the "$from" directory.

I suggest changing it to cp -fr "$from"/{,.[^.]}* "$source_tree/$module-$module_version". It could also be changed to cp -frT "$from" "$source_tree/$module-$module_version", but POSIX cp does not support the -T option. (GNU coreutils cp and BusyBox cp both support it.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions