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 /baserock-bootstrap | |
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 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index d0bb4d5d..ccc96dd4 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -62,7 +62,7 @@ unpack() if [ ! -e "$sources/$1" ] then echo "Unpacking" "$sources/$1"*.tar.* - time tar -C "$sources" -xf "$sources/$1"*.tar.* + time tar -C "$sources" -xhf "$sources/$1"*.tar.* fi } @@ -949,7 +949,7 @@ pass2_build_devel_system_outside_chroot() for stratum in \ "$LFS"/baserock/cache/*.stratum.{foundation,linux-stratum,devel} do - $HOST_SUDO tar -C "$mp" -xf "$stratum" + $HOST_SUDO tar -C "$mp" -xhf "$stratum" done cat <<EOF | $HOST_SUDO tee "$mp/etc/fstab" |