gemian-debos-recipes/cosmocom.yaml
2021-07-09 13:57:49 +01:00

115 lines
2.8 KiB
YAML

{{- $image := or .image "gemian-cosmocom.tgz" -}}
{{- $output := or .output "tarball" -}}
{{- $variant := or .variant "mate" -}}
architecture: arm64
actions:
- action: recipe
description: Setup Gemian rootfs
recipe: gemian-common.yaml
- action: overlay
description: Adding Cosmo Communicator overlay
source: overlay/cosmocom
destination: /
- action: apt
description: Installing additional Debian packages
packages: [ curl, gnupg, openssh-server, sudo ]
- action: apt
description: Installing Cosmo Communicator-specific packages
target-device: mt6771
packages:
# - bluebinder
# - media-hub
# - gemian-system
# - lxc-android
- lxcfs
- uidmap
- libglx-mesa0
- libgl1-mesa-dri
- cosmo-linux-kernel
- action: run
description: Generate /usr/share/kernel/linux-boot.img for Cosmo Communicator
chroot: true
command: /usr/sbin/update-gemian-boot-image cosmocom
- action: run
chroot: true
command: echo cosmocom > /etc/hostname
- action: run
chroot: true
command: echo "127.0.0.1 cosmocom" >> /etc/hosts
- action: run
chroot: true
description: Add apt sandbox user to Android inet group
command: sed -i 's/_apt:x:100:65534/_apt:x:100:3003/g' /etc/passwd
- action: run
chroot: true
description: depmod kernel modules
command: depmod -a 4.4.146
{{ if eq $variant "lxqt" }}
# - action: recipe
# recipe: variants/lxqt.yaml
{{ end }}
{{ if eq $variant "mate" }}
# - action: apt
# description: Installing MATE desktop environment
# packages:
# - lxdm
# - mate-desktop-environment
# - xserver-xorg
# - xserver-xorg-input-evdev
{{ end }}
{{ if eq $variant "kde-plasma" }}
# - action: recipe
# recipe: variants/kde-plasma.yaml
{{ end }}
# - action: run
# chroot: true
# description: Fix default DPI
# command: sed -e "s@\\[server\\]@[server]\\narg=/usr/bin/Xorg -dpi 192\n@" -i /etc/lxdm/lxdm.conf
- action: run
chroot: true
description: Removing xserver-xorg-input-libinput as it does not work with touchscreen yet
command: apt remove xserver-xorg-input-libinput
- action: run
chroot: true
description: Removing /var/log/journal to avoid persisant journaling
command: rm -rf /var/log/journal/
{{ if eq $output "tarball" }}
- action: pack
file: {{ $image }}
compression: gz
{{ end }}
{{ if eq $output "image" }}
- action: image-file
imagename: {{ $image }}
imagesize: 6000000000
fs: ext4
fsname: "gemian"
- action: run
description: Allow jenkins user to access file
command: chown jenkins.jenkins {{ $image }}
- action: filesystem-deploy
setup-fstab: false
setup-kernel-cmdline: false
description: Deploying filesystem onto image
{{ end }}