imagebuilder: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archive
authorSven Roederer <devel-sven@geroedel.de>
Fri, 7 May 2021 19:35:20 +0000 (21:35 +0200)
committerBaptiste Jonglez <git@bitsofnetworks.org>
Fri, 14 May 2021 20:52:40 +0000 (22:52 +0200)
commitf25dc537238673c641eca6e7ce566476b839c46a
tree1080ef871f31d3d14d76f6f6b64c469f0b5247db
parentc6ce0411e190885be9f9420c1705bd4cee32bccb
imagebuilder: unset BINARY_FOLDER and DOWNLOAD_FOLDER in final archive

Using these config-options to customize the folders used at build-time
makes these folder settings appear in generated archive. This causes the
imagebuilder to be not portable, as it's going to use the build-time folders
on the new systems. Errors look like:

  mkdir: cannot create directory '/mnt/build': Permission denied
  Makefile:116: recipe for target '_call_image' failed
  make[2]: *** [_call_image] Error 1
  Makefile:241: recipe for target 'image' failed
  make[1]: *** [image] Error 2

The build-time settings of these folders are passed into the archives via
.config file.
The expected behavior is that after unpacking the imagebuilder acts like
these settings have their defaults, using intree folders. So unset the
build-time settings.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
(cherry picked from commit 6967903b01ea9f7c9f70d0185c3da276801dd78f)
target/imagebuilder/Makefile