summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Burchardt <ansgar@debian.org>2016-09-08 15:30:17 (GMT)
committerAnsgar Burchardt <ansgar@debian.org>2016-09-08 15:35:50 (GMT)
commit6b79352a205a96cee441ae0c6247c4616097a517 (patch)
treee7a7eeb75ebaf4d60f7070a44a4bf9cb2b528723
parent55e2452198840684e64b7aad549c2cc92261a7be (diff)
downloaddebootstrap-6b79352a205a96cee441ae0c6247c4616097a517.zip
debootstrap-6b79352a205a96cee441ae0c6247c4616097a517.tar.gz
debootstrap-6b79352a205a96cee441ae0c6247c4616097a517.tar.bz2
Pass -k to tar when extracting packages
When installing with a merged /usr, the symlinks in / should not be replaced with real directories when extracting the packages.
-rw-r--r--functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions b/functions
index f633f73..60aea99 100644
--- a/functions
+++ b/functions
@@ -821,7 +821,7 @@ extract_dpkg_deb_field () {
extract_dpkg_deb_data () {
local pkg="$1"
- dpkg-deb --fsys-tarfile "$pkg" | tar -xf -
+ dpkg-deb --fsys-tarfile "$pkg" | tar -kxf -
}
# Raw .deb extractors
@@ -859,7 +859,7 @@ extract_ar_deb_data () {
esac
if type $cat_cmd >/dev/null 2>&1; then
- ar -p "$pkg" "$tarball" | $cat_cmd | tar -xf -
+ ar -p "$pkg" "$tarball" | $cat_cmd | tar -kxf -
else
error 1 UNPACKCMDUNVL "Extracting %s requires the %s command, which is not available" "$pkg" "$cat_cmd"
fi