
base-bullseye.yaml: Update both std and rt kernels in "multiple-kernels", and set std kernel as the default boot kernel in "default-kernel". And install both std and rt kernels in "rootfs-pre-scripts". Add rt packages into both base-initramfs-bullseye.yaml and stx-std.lst, so all packages are installed into a single image. Test Plan: Pass: build-image --std Pass: boot up, uname -a shows up std kernel Pass: change to rt kernel in /boot/1/kernel.env Pass: reboot, uname -a shows up rt kernel Pass: build-image --rt Pass: boot up, uname -a shows up rt kernel Pass: change to std kernel in /boot/1/kernel.env Pass: reboot, uname -a shows up std kernel Depends-On: https://review.opendev.org/c/starlingx/root/+/842924 Story: 2008846 Task: 45417 Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Change-Id: I499bf51691d4c55bd75441d6ba3ef640da91e49e
109 lines
2.3 KiB
YAML
109 lines
2.3 KiB
YAML
---
|
|
name: starlingx-initramfs-ostree-image
|
|
machine: intel-x86-64
|
|
image_type:
|
|
- initramfs
|
|
debootstrap-mirror: http://deb.debian.org/debian
|
|
package_feeds: []
|
|
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
|
|
BOOT_GPG_KEY: $OECORE_NATIVE_SYSROOT/usr/share/bootfs/boot_keys/BOOT-GPG-PRIVKEY-SecureBootCore
|
|
packages:
|
|
- apt-utils
|
|
- base-passwd
|
|
- bash
|
|
- bc
|
|
- bnxt-en
|
|
- busybox
|
|
- bzip2
|
|
- ca-certificates
|
|
- curl
|
|
- dosfstools
|
|
- e2fsprogs
|
|
- efibootmgr
|
|
- eject
|
|
- fdisk
|
|
- findutils
|
|
- gawk
|
|
- glib-networking
|
|
- gnupg
|
|
- grep
|
|
- grub2
|
|
- gzip
|
|
- iavf
|
|
- iavf-rt
|
|
- ice
|
|
- ice-rt
|
|
- i40e
|
|
- i40e-rt
|
|
- 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
|
|
- linux-rt-image-5.10.0-6-rt-amd64-unsigned
|
|
- mdadm
|
|
- mlnx-ofed-kernel-modules
|
|
- mlnx-ofed-kernel-modules-rt
|
|
- mount
|
|
- mttyexec
|
|
- ostree-boot=2019.1-1
|
|
- ostree=2019.1-1
|
|
- parted
|
|
- procps
|
|
- psmisc
|
|
- pv
|
|
- rng-tools
|
|
- sed
|
|
- tar
|
|
- udev
|
|
- udhcpc
|
|
- util-linux
|
|
- uuid-runtime
|
|
- vim
|
|
- watchdog
|
|
- wget
|
|
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
|
|
- |-
|
|
# Update the installer script with partition size parameters
|
|
# so they don't have to be specified on the grub command line
|
|
sed -i "s/^FSZ=.*/FSZ=32/g" ${IMAGE_ROOTFS}/install
|
|
sed -i "s/^BSZ=.*/BSZ=512/g" ${IMAGE_ROOTFS}/install
|
|
sed -i "s/^RSZ=.*/RSZ=20480/g" ${IMAGE_ROOTFS}/install
|
|
sed -i "s/^VSZ=.*/VSZ=20480/g" ${IMAGE_ROOTFS}/install
|
|
environments:
|
|
- NO_RECOMMENDATIONS="1"
|
|
- DEBIAN_FRONTEND=noninteractive
|
|
debootstrap-key: ''
|
|
apt-keys:
|
|
- /opt/LAT/pubkey.rsa
|