Some bugs corrected
This commit is contained in:
parent
a28821c8f1
commit
9841f7ed5e
@ -200,7 +200,7 @@ function addmedia()
|
||||
function updatemirror()
|
||||
{
|
||||
title "updating mirror"
|
||||
/sbin/urpmi.update -a -ff --urpmi-root "$BUILD_PATH"
|
||||
/sbin/urpmi.update -a --urpmi-root "$BUILD_PATH"
|
||||
if [ $? -ne 0 ];then
|
||||
error "line $LINENO can't update mirrors : exiting"
|
||||
exit 1
|
||||
@ -283,12 +283,12 @@ EOF" >>"$BUILD_PATH/second_stage_install.sh"
|
||||
#configuration for target
|
||||
|
||||
case $TARGET in
|
||||
xu3-4)
|
||||
xu3|xu4)
|
||||
#TEMPORARY CODE
|
||||
#copying kernel not existing in mageia
|
||||
info "copying kernel-odroid rpm in $BUILD_PATH"
|
||||
echo "/bin/cp $SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm $BUILD_PATH/"
|
||||
/usr/bin/cp "$SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm" "$BUILD_PATH/"
|
||||
#copying kernel odroid not existing in mageia repos
|
||||
info "copying kernel-odroid rpm in $BUILD_PATH/root"
|
||||
echo "/bin/cp $SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm $BUILD_PATH/root/"
|
||||
/usr/bin/cp "$SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm" "$BUILD_PATH/root/"
|
||||
if [ $? -ne 0 ];then
|
||||
error "line $LINENO error copying $SOURCE_PATH/$CONFIG_PATH/kernel-odroid-4.14.y-1.armv7hl.rpm : exiting"
|
||||
exit 1
|
||||
@ -339,7 +339,7 @@ function verify_disk_space()
|
||||
|
||||
function createxu3image()
|
||||
{
|
||||
title "Creating Odroid XU3-4 image"
|
||||
title "Creating Odroid XU3-XU4 image"
|
||||
createimage
|
||||
if [ -z "$BOOTFS" ];then
|
||||
BOOTFS="ext4"
|
||||
@ -524,7 +524,7 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
|
||||
ERRORN=$((ERRORN++))
|
||||
fi
|
||||
;;
|
||||
xu3-4)
|
||||
xu3 | xu4)
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -690,7 +690,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# assign TARGET ( rpi or xu3-4 )
|
||||
# assign TARGET ( rpi, xu3 or xu4 )
|
||||
case $TARGET in
|
||||
xu3|xu4)
|
||||
CREATEIMG="createxu3image"
|
||||
|
Reference in New Issue
Block a user