Don't list /lib/modules/$KernelVer/kernel twice
For quite some time I see warnings like warning: File listed twice: /lib/modules/[...]/kernel when building the kernel-core rpm. This is because that directory is included both in module-dirs.list (and therefor in, basically, kernel-core.list) and in kernel_variant_files(). Tweak the find command that generates module-dirs.list so that this directory is not included in that list anymore. Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
This commit is contained in:
parent
1aead3e9bd
commit
fc4b4c666f
@ -1580,7 +1580,7 @@ BuildKernel() {
|
|||||||
|
|
||||||
# Go back and find all of the various directories in the tree. We use this
|
# Go back and find all of the various directories in the tree. We use this
|
||||||
# for the dir lists in kernel-core
|
# for the dir lists in kernel-core
|
||||||
find lib/modules/$KernelVer/kernel -type d | sort -n > module-dirs.list
|
find lib/modules/$KernelVer/kernel -mindepth 1 -type d | sort -n > module-dirs.list
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm System.map
|
rm System.map
|
||||||
|
Loading…
Reference in New Issue
Block a user