Fix the breakage of /lib on amd64 caused by tar replacing the symlink with a dir.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Sat, 13 Oct 2012 02:44:00 +0000 (02:44 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Sat, 13 Oct 2012 02:44:00 +0000 (02:44 +0000)
targets/support/functions.sh

index 4018716d4671dea3d25755f20f52b1b3d8f223ae..d0737a652eb9cda16bad3bf553d1436f0dcb1d70 100644 (file)
@@ -115,7 +115,7 @@ extract_modules() {
        if [ -f "${kmodules}" ]
        then
                mkdir -p ${1}/
-               tar xjf ${kmodules} -C ${1} lib
+               tar xjf ${kmodules} --strip-components 1 -C ${1}/lib lib
        else
                echo "Can't find kernel modules tarball at ${kmodules}.  Skipping...."
        fi