diff options
author | Brian Behlendorf <[email protected]> | 2011-07-19 21:44:07 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-20 09:38:51 -0700 |
commit | fe0ed8f910c1e4288dc190546cfe98ecf545b547 (patch) | |
tree | 453d1950c7044887431af52de1fdd147f657058d /config/kernel-d-obtain-alias.m4 | |
parent | cfc9a5c88f91f7b4d606fce89505e1f404691ea5 (diff) |
Fix 'make install' overly broad 'rm'
When running 'make install' without DESTDIR set the module install
rules would mistakenly destroy the 'modules.*' files for ALL of
your installed kernels. This could lead to a non-functional system
for the alternate kernels because 'depmod -a' will only be run for
the kernel which was compiled against. This issue would not impact
anyone using the 'make <deb|rpm|pkg>' build targets to build and
install packages.
The fix for this issue is to only remove extraneous build products
when DESTDIR is set. This almost exclusively indicates we are
building packages and installed the build products in to a temporary
staging location. Additionally, limit the removal the unneeded
build products to the target kernel version.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #328
Diffstat (limited to 'config/kernel-d-obtain-alias.m4')
0 files changed, 0 insertions, 0 deletions