diff options
author | Ansgar Burchardt <ansgar@debian.org> | 2016-09-08 15:30:17 (GMT) |
---|---|---|
committer | Ansgar Burchardt <ansgar@debian.org> | 2016-09-08 15:35:50 (GMT) |
commit | 6b79352a205a96cee441ae0c6247c4616097a517 (patch) | |
tree | e7a7eeb75ebaf4d60f7070a44a4bf9cb2b528723 | |
parent | 55e2452198840684e64b7aad549c2cc92261a7be (diff) | |
download | debootstrap-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-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |