diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-16 11:25:35 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-16 11:25:35 +0000 |
commit | 5c52cf732a36232a9d20fc70943aefea3b7c9781 (patch) | |
tree | c68ea5fa3d25431fff4284de94b28cf9c7238fe8 /run-bootstrap-in-chroot | |
parent | 87c07470ad1d37841dcb594c53715ea3518bd4e9 (diff) | |
download | morph-5c52cf732a36232a9d20fc70943aefea3b7c9781.tar.gz |
tar: add -h option to extraction
This should stop tar from replacing symbolic links with directories
and instead follow the symbolic links, extracting the files into
the linked directories
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index 6c736b4d..9a669015 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -42,7 +42,7 @@ run_pass() if "$snapshot" && has_pass "$passname" then - tar -C "$dir" -xf "$tarball" + tar -C "$dir" -xhf "$tarball" update_morph "$dir" else update_morph "$dir" @@ -112,7 +112,7 @@ mkdir "$dir" chrootsnapshot="$snapshotdir/squeeze.tar.gz" if "$snapshot" && [ -e "$chrootsnapshot" ] then - tar -C "$dir" -xf "$chrootsnapshot" + tar -C "$dir" -xhf "$chrootsnapshot" else debootstrap \ --include=build-essential,\ |