Commit 07675303 authored by Michal Marek's avatar Michal Marek Committed by Ben Hutchings

kbuild: Do not package /boot and /lib in make tar-pkg

commit fe04ddf7 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: default avatarAndi Kleen <andi@firstfloor.org>
Suggested-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
[bwh: Fold in commit 3ce9e53e to avoid
 conflicts]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 9362a27c
......@@ -109,7 +109,7 @@ esac
if tar --owner=root --group=root --help >/dev/null 2>&1; then
opts="--owner=root --group=root"
fi
tar cf - . $opts | ${compress} > "${tarball}${file_ext}"
tar cf - boot/* lib/* $opts | ${compress} > "${tarball}${file_ext}"
)
echo "Tarball successfully created in ${tarball}${file_ext}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment