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
This commit is contained in:
1 parent
12289267c5
commit
14e73ecbec
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user