diff options
Diffstat (limited to 'squashfs_utils/mksquashfsimage.sh')
-rwxr-xr-x | squashfs_utils/mksquashfsimage.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/squashfs_utils/mksquashfsimage.sh b/squashfs_utils/mksquashfsimage.sh index 5f8cfeab..28584ea4 100755 --- a/squashfs_utils/mksquashfsimage.sh +++ b/squashfs_utils/mksquashfsimage.sh @@ -5,7 +5,7 @@ function usage() { cat<<EOT Usage: -${0##*/} SRC_DIR OUTPUT_FILE [-s] [-m MOUNT_POINT] [-d PRODUCT_OUT] [-C FS_CONFIG ] [-c FILE_CONTEXTS] [-b BLOCK_SIZE] [-z COMPRESSOR] [-zo COMPRESSOR_OPT] +${0##*/} SRC_DIR OUTPUT_FILE [-s] [-m MOUNT_POINT] [-d PRODUCT_OUT] [-C FS_CONFIG ] [-c FILE_CONTEXTS] [-B BLOCK_MAP_FILE] [-b BLOCK_SIZE] [-z COMPRESSOR] [-zo COMPRESSOR_OPT] EOT } @@ -54,6 +54,12 @@ if [[ "$1" == "-c" ]]; then shift; shift fi +BLOCK_MAP_FILE= +if [[ "$1" == "-B" ]]; then + BLOCK_MAP_FILE=$2 + shift; shift +fi + BLOCK_SIZE=131072 if [[ "$1" == "-b" ]]; then BLOCK_SIZE=$2 @@ -86,6 +92,9 @@ fi if [ -n "$FILE_CONTEXTS" ]; then OPT="$OPT -context-file $FILE_CONTEXTS" fi +if [ -n "$BLOCK_MAP_FILE" ]; then + OPT="$OPT -block-map $BLOCK_MAP_FILE" +fi if [ -n "$BLOCK_SIZE" ]; then OPT="$OPT -b $BLOCK_SIZE" fi |