stx tools: Add debian base packages list and template yaml for base image

This commit creates below list files and yaml file to build packages
and build image
base-bullseye.lst: minimal and complete packages list of vanilla
debian os
base-bullseye.yaml: template yaml to create debian bullseye image
with LAT

Story: 2008862
Task: 43154

Signed-off-by: hbai <haiqing.bai@windriver.com>
Change-Id: I0d4377c9caec71c8b599944866e69934553d6e9f
This commit is contained in:
hbai 2021-09-28 03:16:43 -04:00
parent efffccfa3f
commit bdb3ed0327
5 changed files with 376 additions and 0 deletions

View File

@ -0,0 +1,277 @@
adduser 3.118
apt 2.2.4
apt-utils 2.2.4
base-files 11.1
base-passwd 3.5.51
bash 5.1-2+b3
bsdutils 1:2.36.1-8
busybox 1:1.30.1-6+b3
bzip2 1.0.8-4
ca-certificates 20210119
coreutils 8.32-4+b1
cpio 2.13+dfsg-4
cron 3.0pl1-137
curl 7.74.0-1.3+b1
dash 0.5.11+git20200708+dd9ef66-5
dbus 1.12.20-2
dbus-user-session 1.12.20-2
dconf-gsettings-backend 0.38.0-2
dconf-service 0.38.0-2
debconf 1.5.77
debconf-i18n 1.5.77
debian-archive-keyring 2021.1.1
debianutils 4.11.2
diffutils 1:3.7-5
dirmngr 2.2.27-2
dmidecode 3.3-2
dmsetup 2:1.02.175-2.1
dosfstools 4.2-1
dpkg 1.20.9
e2fsprogs 1.46.2-2
eject 2.36.1-8
fdisk 2.36.1-8
findutils 4.8.0-1
gawk 1:5.1.0-1
gcc-10-base 10.2.1-6
gcc-9-base 9.3.0-22
gdisk 1.0.6-1.1
gettext-base 0.21-4
glib-networking 2.66.0-2
glib-networking-common 2.66.0-2
glib-networking-services 2.66.0-2
gnupg 2.2.27-2
gnupg-l10n 2.2.27-2
gnupg-utils 2.2.27-2
gpg 2.2.27-2
gpg-agent 2.2.27-2
gpg-wks-client 2.2.27-2
gpg-wks-server 2.2.27-2
gpgconf 2.2.27-2
gpgsm 2.2.27-2
gpgv 2.2.27-2
grep 3.6-1
grub-common 2.04-20
grub-pc-bin 2.04-20
grub-pc 2.04-20
grub2-common 2.04-20
grub2 2.04-20
gsettings-desktop-schemas 3.38.0-2
gzip 1.10-4
hostname 3.23
ifupdown 0.8.36
init 1.60
init-system-helpers 1.60
initramfs-tools 0.140
initramfs-tools-core 0.140
iproute2 5.10.0-4
iputils-ping 3:20210202-1
isc-dhcp-client 4.4.1-2.3
isc-dhcp-common 4.4.1-2.3
kbd 2.3.0-3
klibc-utils 2.0.8-6.1
kmod 28-1
less 551-2
libacl1 2.2.53-10
libapparmor1 2.13.6-10
libapt-pkg6.0 2.2.4
libarchive13 3.4.3-2+b1
libargon2-1 0~20171227-0.2
libassuan0 2.5.3-7.1
libattr1 1:2.4.48-6
libaudit-common 1:3.0-2
libaudit1 1:3.0-2
libavahi-client3 0.8-5
libavahi-common-data 0.8-5
libavahi-common3 0.8-5
libavahi-glib1 0.8-5
libblkid1 2.36.1-8
libbluetooth3 5.55-3.1
libbpf0 1:0.3-2
libbrotli1 1.0.9-2+b2
libbsd0 0.11.3-1
libbz2-1.0 1.0.8-4
libc-bin 2.31-13
libc6 2.31-13
libcap-ng0 0.7.9-2.2+b1
libcap2 1:2.44-1
libcap2-bin 1:2.44-1
libcbor0 0.5.0+dfsg-2
libcom-err2 1.46.2-2
libcrypt1 1:4.4.18-4
libcryptsetup12 2:2.3.5-1
libcurl3-gnutls 7.74.0-1.3+b1
libcurl4 7.74.0-1.3+b1
libdb5.3 5.3.28+dfsg1-0.8
libdbus-1-3 1.12.20-2
libdconf1 0.38.0-2
libdebconfclient0 0.260
libdevmapper1.02.1 2:1.02.175-2.1
libdns-export1110 1:9.11.19+dfsg-2.1
libedit2 3.1-20191231-2+b1
libefiboot1 37-6
libefivar1 37-6
libelf1 0.183-1
libestr0 0.1.10-2.1+b1
libexpat1 2.2.10-2
libext2fs2 1.46.2-2
libfastjson4 0.99.9-1
libfdisk1 2.36.1-8
libffi7 3.3-6
libfido2-1 1.6.0-2
libfreetype6 2.10.4+dfsg-1
libfuse2 2.9.9-5
libgcc-s1 10.2.1-6
libgcrypt20 1.8.7-6
libglib2.0-0 2.66.8-1
libgmp10 2:6.2.1+dfsg-1
libgnutls30 3.7.1-5
libgpg-error0 1.38-2
libgpgme11 1.14.0-1+b2
libgpm2 1.20.7-8
libgssapi-krb5-2 1.18.3-6
libhogweed6 3.7.3-1
libicu67 67.1-7
libidn2-0 2.3.0-5
libip4tc2 1.8.7-1
libisc-export1105 1:9.11.19+dfsg-2.1
libjansson4 2.13.1-1.1
libjson-c5 0.15-2
libk5crypto3 1.18.3-6
libkeyutils1 1.6.1-2
libklibc 2.0.8-6.1
libkmod2 28-1
libkrb5-3 1.18.3-6
libkrb5support0 1.18.3-6
libksba8 1.5.0-3
libldap-2.4-2 2.4.57+dfsg-3
liblocale-gettext-perl 1.07-4+b1
liblognorm5 2.0.5-1.1
liblz4-1 1.9.3-2
liblzma5 5.2.5-2
libmd0 1.0.3-3
libmm-glib0 1.14.12-0.2
libmnl0 1.0.4-3
libmount1 2.36.1-8
libmpfr6 4.1.0-3
libncurses6 6.2+20201114-2
libncursesw6 6.2+20201114-2
libndp0 1.6-1+b1
libnettle8 3.7.3-1
libnewt0.52 0.52.21-4+b3
libnftables1 0.9.8-3.1
libnftnl11 1.1.9-1
libnghttp2-14 1.43.0-1
libnl-3-200 3.4.0-1+b1
libnl-genl-3-200 3.4.0-1+b1
libnl-route-3-200 3.4.0-1+b1
libnm0 1.30.0-2
libnpth0 1.6-3
libnsl2 1.3.0-2
libp11-kit0 0.23.22-1
libpam-modules 1.4.0-9
libpam-modules-bin 1.4.0-9
libpam-runtime 1.4.0-9
libpam-systemd 247.3-6
libpam0g 1.4.0-9
libpcre2-8-0 10.36-2
libpcre3 2:8.39-13
libpcsclite1 1.9.1-1
libpng16-16 1.6.37-3
libpolkit-agent-1-0 0.105-31
libpolkit-gobject-1-0 0.105-31
libpopt0 1.18-2
libprocps8 2:3.3.17-5
libproxy1v5 0.4.17-1
libpsl5 0.21.0-1.2
libreadline8 8.1-1
librtmp1 2.4+20151223.gitfa8646d.1-2+b2
libsasl2-2 2.1.27+dfsg-2.1
libsasl2-modules-db 2.1.27+dfsg-2.1
libseccomp2 2.5.1-1
libselinux1 3.1-3
libsemanage-common 3.1-1
libsemanage1 3.1-1+b2
libsepol1 3.1-1
libsigsegv2 2.13-1
libslang2 2.3.2-5
libsmartcols1 2.36.1-8
libsoup2.4-1 2.72.0-2
libsqlite3-0 3.34.1-3
libss2 1.46.2-2
libssh2-1 1.9.0-2
libssl1.1 1.1.1k-1
libstdc++6 10.2.1-6
libsystemd0 247.3-6
libtasn1-6 4.16.0-2
libteamdctl0 1.31-1
libtext-charwidth-perl 0.04-10+b1
libtext-iconv-perl 1.7-7+b1
libtext-wrapi18n-perl 0.06-9
libtinfo6 6.2+20201114-2
libtirpc-common 1.3.1-1
libtirpc3 1.3.1-1
libudev1 247.3-6
libunistring2 0.9.10-4
libuuid1 2.36.1-8
libwrap0 7.6.q-31
libxml2 2.9.10+dfsg-6.7
libxtables12 1.8.7-1
libxxhash0 0.8.0-2
libzstd1 1.4.8+dfsg-2.1
linux-base 4.6
linux-image-5.10.0-8-amd64 5.10.46-4
linux-image-amd64 5.10.46-4
login 1:4.8.1-1
logrotate 3.18.0-2
logsave 1.46.2-2
lsb-base 11.1.0
mawk 1.3.4.20200120-2
mdadm 4.1-11
mksh 59c-9+b2
mount 2.36.1-8
nano 5.4-2
ncurses-base 6.2+20201114-2
ncurses-bin 6.2+20201114-2
net-tools 1.60+git20181103.0eebece-1
netbase 6.3
network-manager 1.30.0-2
nftables 0.9.8-3.1
openssl 1.1.1k-1
openssh-client 1:8.4p1-5
openssh-server 1:8.4p1-5
openssh-sftp-server 1:8.4p1-5
passwd 1:4.8.1-1
perl-base 5.32.1-4
pinentry-curses 1.1.0-4
policykit-1 0.105-31
procps 2:3.3.17-5
psmisc 23.4-2
pv 1.6.6-1+b1
readline-common 8.1-1
rng-tools 5migrate1
rng-tools-debian 2.3
rsyslog 8.2102.0-2
runit-helper 2.10.3
sed 4.7-1
sensible-utils 0.0.14
systemd 247.3-6
systemd-sysv 247.3-6
systemd-timesyncd 247.3-6
sysvinit-utils 2.96-7
tar 1.34+dfsg-1
tasksel 3.68
tasksel-data 3.68
tzdata 2021a-1
ucf 3.0043
udev 247.3-6
udhcpc 1:1.30.1-6+b3
util-linux 2.36.1-8
vim 2:8.2.2434-3
vim-common 2:8.2.2434-3
vim-runtime 2:8.2.2434-3
vim-tiny 2:8.2.2434-3
watchdog 5.16-1+b1
whiptail 0.52.21-4+b3
wpasupplicant 2:2.9.0-21
xxd 2:8.2.2434-3
zlib1g 1:1.2.11.dfsg-2

View File

@ -0,0 +1,91 @@
---
name: debian-image-demo
machine: intel-x86-64
image_type:
- iso
- ostree-repo
- ustart
package_feeds:
- deb [trusted=yes] http://128.224.153.74/debian ./
package_type: external-debian
wic:
OSTREE_WKS_BOOT_SIZE: ''
OSTREE_WKS_EFI_SIZE: --size=32M
OSTREE_WKS_ROOT_SIZE: ''
OSTREE_WKS_FLUX_SIZE: ''
OSTREE_FLUX_PART: fluxdata
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: []
external-packages: []
include-default-packages: '0'
rootfs-pre-scripts:
- |
# The StarlingX customize pacakges includes:
# - ostree 2019.1
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
chroot $IMAGE_ROOTFS bash << SCRIPT_ENDOF
set -e
apt update
apt install -y --no-install-recommends linux-image-amd64 grub-common
apt install -y --allow-downgrades --allow-unauthenticated --no-install-recommends ostree ostree-boot libostree-1-1 ostree-upgrade-mgr
apt install --no-install-recommends -y network-manager
SCRIPT_ENDOF
rootfs-post-scripts:
- |-
# Remove user admin whether it exists or not
# Add a new user and create user's home directory
# Add the user to sudo group
# Username: admin
# Password: 123456
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
chroot $IMAGE_ROOTFS deluser admin
chroot $IMAGE_ROOTFS useradd admin -m --shell /bin/bash -G sudo --password '$6$YcX9PtwnWDeeZfLG$NO64/Frq0xXcMVLKFXqdKxdwBBF42I5TpEiaWfnuj6u6V5GMb0XCASZE7bG4Iiof8QtttCAN4F6xpdNhldIJl/'
- |-
# Set password 'root' to root"
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
chroot $IMAGE_ROOTFS usermod -p '$6$hEv/K.fPeg/$ezIWhJPrMG3WtdEwqQRdyBwdYmPZkqW2PONFAcDd6TqWliYc9dHAwW4MFTlLanVH3/clE0/34FheDMpbAqZVG.' root;
- |-
# Set bash as default shell
ln -snf --relative $IMAGE_ROOTFS/bin/bash $IMAGE_ROOTFS/bin/sh
- |-
# Allow root ssh login
export PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
chroot $IMAGE_ROOTFS sed -i 's/^[#[:space:]]*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
- |-
# From appsdk
# Copy kernel images and grub-efi to deploydir
# Copy efi to rootfs
set -x
set -e
cp -rf $OECORE_TARGET_SYSROOT/boot/efi/EFI/BOOT/grub.cfg $DEPLOY_DIR/grub.cfg
cp -rf $OECORE_TARGET_SYSROOT/boot/efi/EFI/BOOT/bootx64.efi $DEPLOY_DIR/bootx64.efi
cp -rf $OECORE_TARGET_SYSROOT/boot/efi/EFI/BOOT/bootx64.efi $DEPLOY_DIR/grub-efi-bootx64.efi
cp -rf $OECORE_TARGET_SYSROOT/boot/efi $IMAGE_ROOTFS/boot/
cp -rf $IMAGE_ROOTFS/boot/*-amd64 $DEPLOY_DIR
KERNEL=`ls $DEPLOY_DIR/vmlinuz-*-amd64`
ln -snf --relative $KERNEL $DEPLOY_DIR/bzImage
environments:
- NO_RECOMMENDATIONS="1"
- DEBIAN_FRONTEND=noninteractive
ostree:
ostree_use_ab: '1'
ostree_osname: wrlinux
ostree_skip_boot_diff: '2'
ostree_remote_url: ''
OSTREE_GRUB_USER: root
OSTREE_GRUB_PW_FILE: $OECORE_NATIVE_SYSROOT/usr/share/bootfs/boot_keys/ostree_grub_pw
OSTREE_FDISK_BLM: 2506
OSTREE_FDISK_BSZ: 512
OSTREE_FDISK_RSZ: 4096
OSTREE_FDISK_VSZ: 0
OSTREE_FDISK_FSZ: 32
OSTREE_CONSOLE: console=ttyS0,115200 console=tty1

View File

@ -0,0 +1,2 @@
#The OS binary packages that depended by StarlingX patched packages,
#but they are not in the base packages list

View File

@ -0,0 +1,3 @@
#StarlingX patched package's name
#Packages here will be built into rt image
#dpkg

View File

@ -0,0 +1,3 @@
#StarlingX patched package's name
#Packages here will be built into std image
#dpkg