This commit will update the LAT configuration to:
- Change the project name to starlingx
- Change the ostree os name to debian
- Change from an 'A/B' (dual partition) scheme to an 'A' (single
partition) scheme
- provide a LAT patch to enable the initramfs-ostree image to align
with the project name
This will generate:
- A single partition scheme for ostree:
Partitions will be aligned on 2048-sector boundaries
Total free space is 568686525 sectors (271.2 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 bios
2 4096 69631 32.0 MiB EF00 otaefi
3 69632 1118207 512.0 MiB 8300 otaboot
4 1118208 43061247 20.0 GiB 8300 otaroot
5 43061248 85004287 20.0 GiB 8300 fluxdata
6 85004288 146444287 29.3 GiB 8300 platform_backup
7 146444288 521834495 179.0 GiB 8E00 platform_pv
- ostree deployments as:
$ ostree admin status
* debian 26876a4838f7a66d28f725b7edfd59571b69b10e3b113504f0bc49014664cf2c.1
origin refspec: debian:starlingx
GPG: Signature made Fri Feb 18 03:43:02 2022 using RSA key ID CFA856DFC7CB87BE
GPG: Good signature from "Wind-River-Linux-Sample <svc-linux@gmail.com>"
debian 26876a4838f7a66d28f725b7edfd59571b69b10e3b113504f0bc49014664cf2c.0 (rollback)
origin refspec: debian:starlingx
GPG: Signature made Fri Feb 18 03:43:02 2022 using RSA key ID CFA856DFC7CB87BE
GPG: Good signature from "Wind-River-Linux-Sample <svc-linux@gmail.com>"
- build results corresponding to:
starlingx-initramfs-intel-x86-64.cpio.gz
starlingx-initramfs-ostree-image-intel-x86-64.cpio.gz
starlingx-intel-x86-64-cd.iso
Change-Id: I9e3b3a367109a82a7ee905df45ca93bf8a1766f0
Story: 2008846
Task: 44532
Signed-off-by: Robert Church <robert.church@windriver.com>
84 lines
1.7 KiB
YAML
84 lines
1.7 KiB
YAML
---
|
|
name: starlingx-initramfs
|
|
machine: intel-x86-64
|
|
image_type:
|
|
- initramfs
|
|
debootstrap-mirror: http://deb.debian.org/debian
|
|
package_feeds:
|
|
- deb http://deb.debian.org/debian bullseye main contrib
|
|
package_type: external-debian
|
|
gpg:
|
|
gpg_path: /tmp/.lat_gnupg_root
|
|
ostree:
|
|
gpgid: Wind-River-Linux-Sample
|
|
gpgkey: $OECORE_NATIVE_SYSROOT/usr/share/genimage/rpm_keys/RPM-GPG-PRIVKEY-Wind-River-Linux-Sample
|
|
gpg_password: windriver
|
|
grub:
|
|
BOOT_GPG_NAME: SecureBootCore
|
|
BOOT_GPG_PASSPHRASE: SecureCore
|
|
BOOT_KEYS_DIR: $OECORE_NATIVE_SYSROOT/usr/share/bootfs/boot_keys
|
|
packages:
|
|
- apt-utils
|
|
- base-passwd
|
|
- bash
|
|
- busybox
|
|
- bzip2
|
|
- ca-certificates
|
|
- curl
|
|
- dosfstools
|
|
- e2fsprogs
|
|
- eject
|
|
- fdisk
|
|
- findutils
|
|
- gawk
|
|
- glib-networking
|
|
- gnupg
|
|
- grep
|
|
- grub2
|
|
- gzip
|
|
- ifupdown
|
|
- initramfs-ostree
|
|
- iproute2
|
|
- isc-dhcp-client
|
|
- isc-dhcp-common
|
|
- kbd
|
|
- kmod
|
|
- libostree-1-1=2019.1-1
|
|
- linux-image-5.10.0-6-amd64-unsigned
|
|
- mdadm
|
|
- mount
|
|
- mttyexec
|
|
- ostree-boot=2019.1-1
|
|
- ostree=2019.1-1
|
|
- parted
|
|
- procps
|
|
- psmisc
|
|
- pv
|
|
- rng-tools
|
|
- sed
|
|
- tar
|
|
- udev
|
|
- udhcpc
|
|
- util-linux
|
|
- watchdog
|
|
external-packages: []
|
|
include-default-packages: '0'
|
|
rootfs-pre-scripts:
|
|
- echo "run script before do_rootfs in $IMAGE_ROOTFS"
|
|
rootfs-post-scripts:
|
|
- |-
|
|
# Reduce rootfs size AMAP
|
|
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
|
chroot $IMAGE_ROOTFS bash << SCRIPT_ENDOF
|
|
set -x
|
|
rm -rf /boot/*
|
|
rm -rf /var/lib/* /var/cache/*
|
|
rm -rf /usr/share/man /usr/share/doc /usr/share/zoneinfo /usr/share/vim
|
|
SCRIPT_ENDOF
|
|
- |-
|
|
# Set bash as default shell
|
|
ln -snf --relative $IMAGE_ROOTFS/bin/bash $IMAGE_ROOTFS/bin/sh
|
|
environments:
|
|
- NO_RECOMMENDATIONS="1"
|
|
- DEBIAN_FRONTEND=noninteractive
|