Fix for customize_image

This commit is contained in:
zador-blood-stained 2016-07-29 12:15:43 +03:00
parent cd6ad9503f
commit bc9404c460

View file

@ -386,9 +386,12 @@ customize_image()
cp $SRC/userpatches/customize-image.sh $CACHEDIR/sdcard/tmp/customize-image.sh cp $SRC/userpatches/customize-image.sh $CACHEDIR/sdcard/tmp/customize-image.sh
chmod +x $CACHEDIR/sdcard/tmp/customize-image.sh chmod +x $CACHEDIR/sdcard/tmp/customize-image.sh
mkdir -p $CACHEDIR/sdcard/tmp/overlay mkdir -p $CACHEDIR/sdcard/tmp/overlay
mount --bind $SRC/userpatches/overlay $CACHEDIR/sdcard/tmp/overlay if [[ $(lsb_release -sc) == xenial ]]; then
# separate remount command for compatibility with Trusty (util-linux < 2.27) # util-linux >= 2.27 required
mount -o remount,ro $CACHEDIR/sdcard/tmp/overlay mount -o bind,ro $SRC/userpatches/overlay $CACHEDIR/sdcard/tmp/overlay
else
mount -o bind $SRC/userpatches/overlay $CACHEDIR/sdcard/tmp/overlay
fi
display_alert "Calling image customization script" "customize-image.sh" "info" display_alert "Calling image customization script" "customize-image.sh" "info"
chroot $CACHEDIR/sdcard /bin/bash -c "/tmp/customize-image.sh $RELEASE $FAMILY $BOARD $BUILD_DESKTOP" chroot $CACHEDIR/sdcard /bin/bash -c "/tmp/customize-image.sh $RELEASE $FAMILY $BOARD $BUILD_DESKTOP"
umount $CACHEDIR/sdcard/tmp/overlay umount $CACHEDIR/sdcard/tmp/overlay