Skip to content
Snippets Groups Projects
Verified Commit 3e7f591f authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Preinstall the devroot into the SDK images


Debos doesn’t support overlaying tarballs containing device nodes
and other special files, meaning we have to use tar here.

Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 6ab1fa48
No related branches found
No related tags found
1 merge request!49Build devroots and preinstall them into SDK images
......@@ -3,6 +3,7 @@
{{ $mirror := or .mirror "https://repositories.apertis.org/apertis/" }}
{{ $suite := or .suite "18.06" }}
{{ $timestamp := or .timestamp "00000000.0" }}
{{ $imageroot := or .imageroot "https://images.apertis.org/daily/$suite/$timestamp" }}
{{ $ospack := or .ospack (printf "ospack_%s-%s-%s_%s" $suite $architecture $type $timestamp) }}
{{ $image := or .image (printf "apertis-%s-%s-%s_%s" $suite $type $architecture $timestamp) }}
......@@ -12,6 +13,9 @@
{{ $size := or .size "20G" }}
{{ $ivitools := or .ivitools "enabled" }}
{{ $devroot := or .devroot "enabled" }}
{{ $devroot_arch := or .devroot_arch "armhf" }}
{{ $devpack := or .devpack (printf "ospack_%s-%s-%s_%s" $suite $devroot_arch "devroot" $timestamp) }}
architecture: {{ $architecture }}
......@@ -103,6 +107,24 @@ actions:
script: scripts/clone-sample-repos.sh
{{ end }}
{{ if eq $devroot "enabled" }}
- action: download
description: Fetch the devroot ospack
url: {{ $imageroot }}/{{ $timestamp }}/{{ $devroot_arch }}/devroot/{{ $devpack }}.tar.gz
name: devpack
filename: devpack.tar.gz
- action: run
description: Create the devroot directory
chroot: false
command: mkdir -p "${ROOTDIR}/opt/devroot"
- action: run
description: Unpack the devroot ospack
chroot: false
command: tar --extract -C "${ROOTDIR}/opt/devroot" -f devpack.tar.gz
{{ end }}
- action: run
description: List files on {{ $image }}
chroot: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment