#23 DOC_DIR and PREFIX fix
Closed: Fixed 2 months ago by pwhalen. Opened a year 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
-       DOC_DIR="/usr/share/doc/fedora-arm-installer/"
+       DOC_DIR="/usr/share/doc/arm-image-installer/"
        DIR=$(dirname $0)
@@ -451,7 +451,7 @@ elif [ "$(echo $IMAGE | grep -i iot)" != "" ]; then
        PREFIX=$(echo $PREFIX)
        . "${BOARDDIR}/${TARGET}"
-       PREFIX=/tmp/root
+       PREFIX=
        . "${BOARDDIR}/${TARGET}"

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)

2 months ago

Login to comment on this ticket.