Skip to content
Snippets Groups Projects
Commit dc96670c authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Add creation of SDK image for VirtualBox


Additional image in VDI format for VirtualBox users.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D7229
parent 2e8e11a5
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
{{ $suite := or .suite "17.12" }}
{{ $timestamp := or .timestamp "00000000.0" }}
{{ $ospack := or .ospack (printf "ospack_%s-%s-%s_%s.tar.gz" $suite $architecture $type $timestamp) }}
{{ $image := or .image (printf "apertis-%s-%s-%s_%s.img" $suite $type $architecture $timestamp) }}
{{ $image := or .image (printf "apertis-%s-%s-%s_%s" $suite $type $architecture $timestamp) }}
{{ $cmdline := or .cmdline "console=tty0 console=ttyS0,115200n8 rootwait ro quiet splash plymouth.ignore-serial-consoles" }}
......@@ -18,7 +18,7 @@ actions:
file: {{ $ospack }}
- action: image-partition
imagename: {{ $image }}
imagename: {{ (printf "%s.img" $image) }}
imagesize: 20G
partitiontype: gpt
......@@ -81,17 +81,39 @@ actions:
description: Cleanup /var/lib
script: scripts/remove_var_lib_parts.binary
# For VirtualBox
- action: run
description: Create block map for {{ $image }}
description: Convert raw image to {{ $image }}.vdi
postprocess: true
command: bmaptool create {{ $image }} > {{ $image }}.bmap
command: qemu-img convert -O vdi {{ $image }}.img {{ $image }}.vdi
- action: run
description: Compress {{ $image }}
description: Create block map for {{ $image }}.vdi
postprocess: true
command: gzip -f {{ $image }}
command: bmaptool create {{ $image }}.vdi > {{ $image }}.vdi.bmap
- action: run
description: Checksum for {{ $image }}.gz
description: Compress {{ $image }}.vdi
postprocess: true
command: md5sum {{ $image }}.gz > {{ $image }}.gz.md5
command: gzip -f {{ $image }}.vdi
- action: run
description: Checksum for {{ $image }}.vdi.gz
postprocess: true
command: md5sum {{ $image }}.vdi.gz > {{ $image }}.vdi.gz.md5
# Raw image
- action: run
description: Create block map for {{ $image }}.img
postprocess: true
command: bmaptool create {{ $image }}.img > {{ $image }}.img.bmap
- action: run
description: Compress {{ $image }}.img
postprocess: true
command: gzip -f {{ $image }}.img
- action: run
description: Checksum for {{ $image }}.img.gz
postprocess: true
command: md5sum {{ $image }}.img.gz > {{ $image }}.img.gz.md5
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