kbuild: Do not package /boot and /lib in make tar-pkg
authorMichal Marek <mmarek@suse.cz>
Tue, 25 Sep 2012 14:03:03 +0000 (16:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 18:59:41 +0000 (10:59 -0800)
commitcc7c332b34cb936b4a27c1c185700c9a0f7c7bf0
tree68626e3b58aee73c409ee49eb47b23e0d7cbb6a0
parent0e252d8f530e5d322c53d014ce07b8115dfdac78
kbuild: Do not package /boot and /lib in make tar-pkg

commit fe04ddf7c2910362f3817c8156e41cbd6c0ee35d upstream.

There were reports of users destroying their Fedora installs by a kernel
tarball that replaces the /lib -> /usr/lib symlink. Let's remove the
toplevel directories from the tarball to prevent this from happening.

Reported-by: Andi Kleen <andi@firstfloor.org>
Suggested-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
[bwh: Fold in commit 3ce9e53e788881da0d5f3912f80e0dd6b501f304 to avoid
 conflicts]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/package/buildtar