forked from erfanoabdi/rootfs-builder-debos-android9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolish.yaml
26 lines (23 loc) · 846 Bytes
/
polish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{- $architecture := or .architecture "amd64" -}}
{{- $image := or .image "pleasesetimage" -}}
{{- $output_type := or .output_type "image" -}}
# Common final steps to complete image files
architecture: {{ $architecture }}
actions:
- action: run
description: Remove apt caches to save space
chroot: true
command: rm -r /var/cache/apt/*
# This must be the final 'chroot: true' action in the recipe, or else
# /etc/localtime will be deleted by systemd-nspawn.
# See https://github.com/go-debos/debos/issues/180
- action: run
chroot: true
description: Set up /etc/writable links for timezone and friends
script: scripts/etc-writable.sh
{{ if eq $output_type "image" }}
- action: run
description: Create bmap file
postprocess: true
command: bmaptool create {{ $image }} > {{ $image }}.bmap
{{ end }}