Fix squisher on ArchLinux 32-bit chroot.
Something isn't setting the path correctly when running in a 32-bit chroot environment in ArchLinux. This causes the script to cd into $WORK/xbin. The PATH incorrectly contains ".", so all attempted commands (rm, mv, cp) fail to execute as it is trying to execute $WORK/xbin/{rm, mv, cp}.
This commit is contained in:
parent
7e2391ad25
commit
f095b8a85f
1 changed files with 5 additions and 6 deletions
|
@ -33,12 +33,11 @@ if [ "$TARGET_PRODUCT" = "cyanogen_dream_sapphire" ]
|
|||
then
|
||||
# Create the xbin squashfs
|
||||
cp -a $XBIN $WORK/xbin/
|
||||
cd $WORK/xbin
|
||||
chown -R 1000:1000 *
|
||||
chmod -R 755 *
|
||||
rm su
|
||||
ln -s ../bin/su su
|
||||
mksquashfs . $WORK/xbin.sqf
|
||||
chown -R 1000:1000 $WORK/xbin/*
|
||||
chmod -R 755 $WORK/xbin/*
|
||||
rm $WORK/xbin/su
|
||||
ln -s $WORK/bin/su $WORK/xbin/su
|
||||
mksquashfs $WORK/xbin/* $WORK/xbin.sqf
|
||||
fi
|
||||
|
||||
# Unpack the otapackage and opticharge all apks
|
||||
|
|
Loading…
Reference in a new issue