summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Renshaw <osm0sis@outlook.com>2018-02-27 00:47:57 -0400
committerGitHub <noreply@github.com>2018-02-27 00:47:57 -0400
commit14e73ecbec636eb72ce82a0d7dc078e23610351c (patch)
tree1ef6fc3885c648281147b9b78d63cb1a6d0a2c15 /tools
parent12289267c5017a8418279bd6bf6c84caf8ee251f (diff)
AK2: fix cpio extraction with busybox 1.28+
"cpio: skipping unsafe symlink to '/system/vendor' in archive, set EXTRACT_UNSAFE_SYMLINKS=1 to extract", introduced by https://git.busybox.net/busybox/commit/?id=bc9bbeb2b81001e8731cd2ae501c8fccc8d87cc7 Thanks @nathanchance for the quick heads up
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ak2-core.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh
index 48fee83..2d34cdd 100755
--- a/tools/ak2-core.sh
+++ b/tools/ak2-core.sh
@@ -102,7 +102,7 @@ unpack_ramdisk() {
mkdir -p $ramdisk;
chmod 755 $ramdisk;
cd $ramdisk;
- $unpackcmd -dc $split_img/boot.img-ramdisk.cpio.$compext | cpio -i -d;
+ $unpackcmd -dc $split_img/boot.img-ramdisk.cpio.$compext | EXTRACT_UNSAFE_SYMLINKS=1 cpio -i -d;
if [ $? != 0 -o -z "$(ls $ramdisk)" ]; then
ui_print " "; ui_print "Unpacking ramdisk failed. Aborting..."; exit 1;
fi;