diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-06-13 11:05:07 +0100 |
---|---|---|
committer | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-06-14 13:47:04 +0100 |
commit | f63fc25a212f3d632ceb4ec850bfbc97fdb25724 (patch) | |
tree | ce716109137de0ef759393d419274be5bdcb6a12 /jenkins | |
parent | 0bc9dffbdee9b0d40cce2914bab5e445bbb8abb9 (diff) |
debos: add extra_files_remove to remove arbitray files in ramdisk
Add an extra_filres_remove variable to remove any arbitray files using
`find` after running crush.sh when creating the ramdisk cpio archive.
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'jenkins')
-rw-r--r-- | jenkins/debian/debos/rootfs.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/jenkins/debian/debos/rootfs.yaml b/jenkins/debian/debos/rootfs.yaml index c72685a..94d4cb5 100644 --- a/jenkins/debian/debos/rootfs.yaml +++ b/jenkins/debian/debos/rootfs.yaml @@ -5,6 +5,7 @@ {{- $script := or .script "scripts/nothing.sh" -}} {{- $test_overlay := .test_overlay -}} {{- $extra_packages_remove := or .extra_packages_remove -}} +{{- $extra_files_remove := or .extra_files_remove -}} architecture: {{ $architecture }} @@ -152,6 +153,18 @@ actions: chroot: true script: scripts/crush.sh +{{ if $extra_files_remove }} + - action: run + description: remove extra files + chroot: true + command: | + for exp in {{ $extra_files_remove }}; do + for f in $(find . -name "$exp"); do + rm -rf "$f" + done + done +{{ end }} + - action: run description: Set symbolic link to init chroot: true |