Fix wrong argument passed to customize-image.sh

Fixes #615
This commit is contained in:
zador-blood-stained 2017-02-01 12:37:44 +03:00
parent e50234f88c
commit 184417e055
2 changed files with 3 additions and 3 deletions

View file

@ -468,7 +468,7 @@ customize_image()
mount -o bind $SRC/userpatches/overlay $CACHEDIR/$SDCARD/tmp/overlay
fi
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 $LINUXFAMILY $BOARD $BUILD_DESKTOP"
umount $CACHEDIR/$SDCARD/tmp/overlay
mountpoint -q $CACHEDIR/$SDCARD/tmp/overlay || rm -r $CACHEDIR/$SDCARD/tmp/overlay
}

View file

@ -1,6 +1,6 @@
#!/bin/bash
# arguments: $RELEASE $FAMILY $BOARD $BUILD_DESKTOP
# arguments: $RELEASE $LINUXFAMILY $BOARD $BUILD_DESKTOP
#
# This is the image customization script
#
@ -9,7 +9,7 @@
# so don't reference any files that are not already installed
RELEASE=$1
FAMILY=$2
LINUXFAMILY=$2
BOARD=$3
BUILD_DESKTOP=$4