#23 DOC_DIR and PREFIX fix
Closed: Fixed 4 years ago by pwhalen. Opened 5 years ago by sharmay.

  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

Metadata Update from @pwhalen:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata