tools/debian-mirror-tools/config/debian/common/base-initramfs-bullseye.yaml
Li Zhou b25174a2d0 debian: kernel: integrate kernel image built from source
Use our kernel-std image which is built based on linux-yocto kernel
source code to replace the debian kernel image.
Also install the oot kernel-modules packages and the kernel userspace
packages onto the final iso.

The packages include:
-#kernel-std image from linux-yocto
 -linux-image-5.10.0-6-amd64-unsigned
 -linux-libc-dev
-#kernel-modules
 -i40e
 -iavf
 -ice
 -igb-uio
 -kmod-opae-fpga-driver
 -mlnx-ofed-kernel-utils
 -mlnx-ofed-kernel-modules
 -qat1.7.l
-#kernel userspace
 -rdma-core
 -libibverbs1

PASS: built image & installed & boot up on qemu;
PASS: manually checked about the packages' versions involved.

After this commit is merged, please pay attention:
    Start from a clean build in case the debian kernel we used
    (which has a higher version number than the one we are using now)
    will affect the build-image process.

Depends-On: https://review.opendev.org/c/starlingx/kernel/+/824504
Depends-On: https://review.opendev.org/c/starlingx/tools/+/824505
Story: 2009221
Task: 44269
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Change-Id: Iaa67fda9a43dec4397d38f2d4fd01b1c23b10d9d
2022-01-24 03:36:38 -05:00

78 lines
1.6 KiB
YAML

---
name: debian-initramfs-ostree-image
machine: intel-x86-64
image_type:
- initramfs
debootstrap-mirror: http://ftp.cn.debian.org/debian
package_feeds:
- deb http://ftp.cn.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:
- base-passwd
- bash
- busybox
- bzip2
- ca-certificates
- curl
- dosfstools
- e2fsprogs
- eject
- fdisk
- findutils
- gawk
- glib-networking
- gnupg
- grep
- grub2
- gzip
- initramfs-ostree
- 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
- 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