Merge "Add element-manifest"
This commit is contained in:
commit
e2d3bb0016
7
elements/element-manifest/README.md
Normal file
7
elements/element-manifest/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
element-manifest
|
||||
================
|
||||
|
||||
Writes a manifest file that is the full list of elements that were used to
|
||||
build the image. The file path can be overriden by setting
|
||||
$DIB\_ELEMENT\_MANIFEST\_PATH, and defaults to
|
||||
/etc/dib-manifests/element-manifest.
|
1
elements/element-manifest/element-deps
Normal file
1
elements/element-manifest/element-deps
Normal file
@ -0,0 +1 @@
|
||||
manifests
|
8
elements/element-manifest/extra-data.d/75-inject-element-manifest
Executable file
8
elements/element-manifest/extra-data.d/75-inject-element-manifest
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
DIB_ELEMENT_MANIFEST_PATH=${DIB_ELEMENT_MANIFEST_PATH:-"$DIB_MANIFEST_IMAGE_DIR/dib-element-manifest"}
|
||||
sudo mkdir -p $TMP_MOUNT_PATH/$(dirname $DIB_ELEMENT_MANIFEST_PATH)
|
||||
sudo /bin/bash -c "echo $IMAGE_ELEMENT | tr ' ' '\n' > $TMP_MOUNT_PATH/$DIB_ELEMENT_MANIFEST_PATH"
|
Loading…
Reference in New Issue
Block a user