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

Port the devroot installation code from 18.12


This downloads the freshly built devroot ospack and installs it into the
SDK image.

Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent c2fea43f
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,9 @@ def buildImage(architecture, type, board, debosarguments = "") {
-t architecture:${architecture} \
-t type:${type} \
-t ospack:ospack_${release}-${architecture}-${type}_${PIPELINE_VERSION} \
-t imageroot:https://images.apertis.org/daily/${release} \
-t suite:$release \
-t timestamp:${PIPELINE_VERSION} \
-t image:${image_name} \
-t demopack:${demopack} \
${WORKSPACE}/${osname}-image-${board}.yaml""")
......
......@@ -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 (printf "https://images.apertis.org/daily/%s/%s" $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.chroot
{{ 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