Correctly create DIB_ENV variable and dib_environment file
The DIB_ENV variable can contain multiline content, for example at least DIB_BLOCK_DEVICE_CONFIG is a multiline YAML data [1], so for this type of content the variable created with incomplete data, also this incomple data echoed [2] when creating the dib_environment file which creates an unusable file. This change fixes the issue. 1.79ea63f525/doc/source/user_guide/building_an_image.rst (disk-image-layout)
2.79ea63f525/diskimage_builder/elements/manifests/cleanup.d/01-copy-manifests-dir (L32)
Change-Id: I3b74ede69eb064ad813a9108ec68a228e549e8bb Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
parent
0e5986e9fb
commit
f5e4060533
@ -26,7 +26,7 @@ export LC_ALL=C
|
||||
|
||||
# Store our initial environment and command line args for later
|
||||
export DIB_ARGS="$@"
|
||||
export DIB_ENV=$(export | grep ' DIB_.*=')
|
||||
export DIB_ENV=$(declare -p $(compgen -v | grep '^DIB_'))
|
||||
|
||||
SCRIPTNAME=$(basename $0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user