Fix glob expansion which resulted in some boot failures

This commit is contained in:
Dylan Van Assche 2020-05-01 14:41:14 +02:00
parent 51baade149
commit 1bd68e90e6
No known key found for this signature in database
GPG Key ID: EB0030A875E07AD0
1 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION="0.3.1"
VERSION="0.3.2"
BRANCH=master
CUSTOM=""
UBOOT_JOB=u-boot
@ -237,11 +237,15 @@ sync
echo -e "\e[1mCopying kernel to boot partition...\e[0m"
mkdir "$MOUNT_BOOT"
sudo mount $BOOTPART "$MOUNT_BOOT" # Mount boot partition
sudo cp $MOUNT_DATA/boot/* $MOUNT_BOOT
echo "Boot partition mount: $MOUNT_BOOT"
sudo sh -c "cp $MOUNT_DATA/boot/Image $MOUNT_BOOT"
sudo sh -c "cp $MOUNT_DATA/boot/*.dtb $MOUNT_BOOT"
sudo sh -c "cp $MOUNT_DATA/boot/*.dts $MOUNT_BOOT"
echo `ls $MOUNT_BOOT`
if [ "$CUSTOM" != "" ]; then
sudo cp "${CUSTOM}/boot.scr" "$MOUNT_BOOT/boot.scr"
sudo sh -c "cp '${CUSTOM}/boot.scr' '$MOUNT_BOOT/boot.scr'"
else
sudo cp "./u-boot-bootloader/$ROOTFS_DIR/boot.scr" "$MOUNT_BOOT/boot.scr"
sudo sh -c "cp './u-boot-bootloader/$ROOTFS_DIR/boot.scr' '$MOUNT_BOOT/boot.scr'"
fi
sync