Buffix when installing to Odroid eMMC from SD card

This commit is contained in:
Igor Pecovnik 2017-08-10 23:15:32 +02:00
parent cc4e1ccc8e
commit 704eee9033

View File

@ -192,6 +192,8 @@ create_armbian()
sed -e 's,rootdev=.*,rootdev='"$targetuuid"',g' -i /mnt/bootfs/boot/armbianEnv.txt
else
sed -e 's,setenv rootdev.*,setenv rootdev '"$targetuuid"',g' -i /mnt/bootfs/boot/boot.cmd
[[ -f /mnt/bootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev '"$root_partition"',setenv rootdev '"$targetuuid"',g' -i /mnt/bootfs/boot/boot.ini
[[ -f /mnt/rootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev '"$root_partition"',setenv rootdev '"$targetuuid"',g' -i /mnt/rootfs/boot/boot.ini
fi
mkimage -C none -A arm -T script -d /mnt/bootfs/boot/boot.cmd /mnt/bootfs/boot/boot.scr >/dev/null 2>&1 || (echo "Error"; exit 0)