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)
committerMohamad Ayyash <mkayyash@google.com>
Wed, 24 Jun 2015 20:05:25 +0000 (13:05 -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 7f96cb1..dbf7166 100755 (executable)
@@ -53,7 +53,7 @@ if [ -n "$BLOCK_SIZE" ]; then
   OPT="$OPT -b $BLOCK_SIZE"
 fi
 
-MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR $OUTPUT_FILE -no-progress -comp lz4 -Xhc -no-exports -noappend -no-recovery -android-fs-config $OPT"
+MAKE_SQUASHFS_CMD="mksquashfs $SRC_DIR/ $OUTPUT_FILE -no-progress -comp lz4 -Xhc -no-exports -noappend -no-recovery -android-fs-config $OPT"
 echo $MAKE_SQUASHFS_CMD
 $MAKE_SQUASHFS_CMD
 if [ $? -ne 0 ]; then