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

images: arm64: initial version


Image for arm64 target.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
Reviewed-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D7206
parent f3a7a01a
No related branches found
No related tags found
No related merge requests found
{{ $architecture := or .architecture "arm64" }}
{{ $type := "minimal" }}
{{ $mirror := or .mirror "https://repositories.apertis.org/apertis/" }}
{{ $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) }}
{{ $cmdline := or .cmdline " rootwait ro" }}
architecture: {{ $architecture }}
actions:
- action: unpack
description: Unpack {{ $ospack }}
compression: gz
file: {{ $ospack }}
- action: image-partition
imagename: {{ $image }}
{{ if eq $type "minimal" }}
imagesize: 4294967296
{{end}}
partitiontype: gpt
mountpoints:
- mountpoint: /
partition: system
flags: [ boot ]
options: ro
- mountpoint: /boot
partition: boot
- mountpoint: /home
partition: general_storage
partitions:
- name: boot
fs: ext2
start: 0%
end: 256M
flags: [ boot ]
- name: system
fs: btrfs
start: 256M
{{ if eq $type "minimal" }}
end: 1024M
{{end}}
- name: general_storage
fs: btrfs
{{ if eq $type "minimal" }}
start: 1024M
{{end}}
end: -4M
- action: filesystem-deploy
description: Deploying ospack onto image
- action: run
description: Add kernel parameters
chroot: true
command: sed -i '1 s/$/{{ $cmdline }}/' /etc/kernel/cmdline
- action: apt
description: Kernel and system packages for amd64
packages:
- kmod
- linux-base
- initramfs-tools
- linux-image-4.9.0-0.bpo.2-arm64-unsigned
- u-boot-common
- btrfs-tools
- action: run
description: Cleanup /var/lib
script: scripts/remove_var_lib_parts.binary
- action: run
description: Create block map for {{ $image }}
postprocess: true
command: bmaptool create {{ $image }} > {{ $image }}.bmap
- action: run
description: Compress {{ $image }}
postprocess: true
command: gzip -f {{ $image }}
- action: run
description: Checksum for {{ $image }}.gz
postprocess: true
command: md5sum {{ $image }}.gz > {{ $image }}.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