OSDN Git Service

mksquashfsimage.sh: Add forward slash for SRC_DIR
authorMohamad Ayyash <mkayyash@google.com>
Wed, 24 Jun 2015 20:04:29 +0000 (13:04 -0700)
committerSimon Wilson <simonwilson@google.com>
Wed, 24 Jun 2015 20:32:43 +0000 (13:32 -0700)
There is a bug in mksquashfs that fails to interpret symlink dirs unless
they have a forward slash

Change-Id: I64df07d99858a792e1d7af5d11234fe8b75f91ae
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
squashfs_utils/mksquashfsimage.sh

index 58333fe..260a0fd 100755 (executable)
@@ -72,7 +72,7 @@ if [ -n "$BLOCK_SIZE" ]; then
   OPT="$OPT -b $BLOCK_SIZE"
 fi
 
-MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR $OUTPUT_FILE -no-progress -comp $COMPRESSOR $COMPRESSOR_OPT -no-exports -noappend -no-recovery -android-fs-config $OPT"
+MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR/ $OUTPUT_FILE -no-progress -comp $COMPRESSOR $COMPRESSOR_OPT -no-exports -noappend -no-recovery -android-fs-config $OPT"
 echo $MAKE_SQUASHFS_CMD
 $MAKE_SQUASHFS_CMD