#23 DOC_DIR and PREFIX fix
Opened 10 months ago by sharmay. Modified 9 months ago

  1. With latest update which renames fedora-arm-image-installer to arm-image-installer, DOC_DIR pointing to wrong location

  2. for --target=pine64_plus I get following error

= Adding SSH key to authorized keys.
= Writing sunxi-spl.bin for pine64_plus ....
dd: failed to open '/tmp/root/usr/share/uboot/pine64_plus/sunxi-spl.bin': No such file or directory
= Writing u-boot FIT image for pine64_plus ....
dd: failed to open '/tmp/root/usr/share/uboot/pine64_plus/u-boot.itb': No such file or directory

Unsetting PREFIX=/tmp/root make it work.

git diff to fix both issues

diff --git a/arm-image-installer b/arm-image-installer
index 14827f6..9a567ba 100755
--- a/arm-image-installer
+++ b/arm-image-installer
@@ -35,7 +35,7 @@ Example: $(basename ${0}) --image=Fedora-Rawhide.xz --target=Bananapi --media=/d
 DIR=$(dirname $0)
 if [ -d "/usr/share/arm-image-installer/boards.d" ]; then
        BOARDDIR="/usr/share/arm-image-installer/boards.d"
-       DOC_DIR="/usr/share/doc/fedora-arm-installer/"
+       DOC_DIR="/usr/share/doc/arm-image-installer/"
 else
        DIR=$(dirname $0)
        BOARDDIR="${DIR}/boards.d"
@@ -451,7 +451,7 @@ elif [ "$(echo $IMAGE | grep -i iot)" != "" ]; then
        PREFIX=$(echo $PREFIX)
        . "${BOARDDIR}/${TARGET}"
 else
-       PREFIX=/tmp/root
+       PREFIX=
        . "${BOARDDIR}/${TARGET}"
 fi

This also prevents listing supported hardware:

$ arm-image-installer --supported
cat: /usr/share/doc/fedora-arm-installer//SUPPORTED-BOARDS: No such file or directory

Login to comment on this ticket.

Metadata