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:
ctso 2010-07-03 08:16:59 +00:00
parent 7e2391ad25
commit f095b8a85f
1 changed files with 5 additions and 6 deletions

View File

@ -33,12 +33,11 @@ if [ "$TARGET_PRODUCT" = "cyanogen_dream_sapphire" ]
then then
# Create the xbin squashfs # Create the xbin squashfs
cp -a $XBIN $WORK/xbin/ cp -a $XBIN $WORK/xbin/
cd $WORK/xbin chown -R 1000:1000 $WORK/xbin/*
chown -R 1000:1000 * chmod -R 755 $WORK/xbin/*
chmod -R 755 * rm $WORK/xbin/su
rm su ln -s $WORK/bin/su $WORK/xbin/su
ln -s ../bin/su su mksquashfs $WORK/xbin/* $WORK/xbin.sqf
mksquashfs . $WORK/xbin.sqf
fi fi
# Unpack the otapackage and opticharge all apks # Unpack the otapackage and opticharge all apks