diff options
| author | Michal Marek <mmarek@suse.cz> | 2012-09-25 10:03:03 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2012-09-27 10:26:19 -0400 |
| commit | fe04ddf7c2910362f3817c8156e41cbd6c0ee35d (patch) | |
| tree | c760dd345cdc0ac7add2b541ae642b1ef496c0f5 /scripts/package | |
| parent | 24cc7fb69a5b5edfdff1d38c6a213d6a33648829 (diff) | |
kbuild: Do not package /boot and /lib in make tar-pkg
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>
Cc: <stable@kernel.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/package')
| -rw-r--r-- | scripts/package/buildtar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar index 8a7b15598ea9..d0d748e72915 100644 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar | |||
| @@ -109,7 +109,7 @@ esac | |||
| 109 | if tar --owner=root --group=root --help >/dev/null 2>&1; then | 109 | if tar --owner=root --group=root --help >/dev/null 2>&1; then |
| 110 | opts="--owner=root --group=root" | 110 | opts="--owner=root --group=root" |
| 111 | fi | 111 | fi |
| 112 | tar cf - . $opts | ${compress} > "${tarball}${file_ext}" | 112 | tar cf - boot/* lib/* $opts | ${compress} > "${tarball}${file_ext}" |
| 113 | ) | 113 | ) |
| 114 | 114 | ||
| 115 | echo "Tarball successfully created in ${tarball}${file_ext}" | 115 | echo "Tarball successfully created in ${tarball}${file_ext}" |
