Files
apt-ostree/config/debian/bookworm/bootstrap.yaml
Charles Short 3f2fbfb24f simplify compose create
This commit does several things at once:

- Drop the usage of bdebstrap, it doesnt seem to be available
  as a Debian package going forward, and it makes the start of
  building unit tests easier.
- Use the "unshare" mode by default. This allows us to build
  a rootfs as a regular user and doesnt create device files.
  Which allows us to to drop some workarounds.
- Add debian/trixie support. This was created by doing a straight
  copy of debian/bookworm.

Story: 2010867
Task: 48556

Test Plan
PASS Create ostree branch

Change-Id: Idd38c6417769296d7ab4d6640624a18d5de74da4
Signed-off-by: Charles Short <charles.short@windriver.com>
2024-01-09 19:23:58 +00:00

72 lines
1.6 KiB
YAML

# Copyright (c) 2023 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
#
---
mmdebstrap:
suite: bookworm
architectures: amd64
components:
- main
- contrib
- non-free
- non-free-firmware
# Customizations that happen before bootstrapping.
setup-hooks:
- 'sync-in overlay/debian/ /'
- 'sync-in overlay/ostree/ /'
- 'sync-in overlay/auto-login/ /'
- 'sync-in overlay/firstboot/ /'
# Customizations that happen after boostrapping.
customize-hooks:
- 'sync-in overlay/adduser/ /'
- echo 'root:root' | chroot "$1" chpasswd
- chroot $1 echo "localhost" > $1/etc/hostname
- systemctl disable --root=$1 apt-daily.timer cron
- systemctl enable --root="$1" firstboot systemd-networkd
- chroot $1 cp -alf /lib/systemd/resolv.conf /etc/resolv.conf
- chroot $1 cp -alf /usr/libexec/libostree/grub2-15_ostree /etc/grub.d/15_ostree
- chroot $1 cp -alf /usr/lib/os-release /etc/os-release
# Packages to install after bootstrapping.
packages:
- linux-image-amd64
- firmware-linux
- sudo
- ostree
- ostree-boot
- libostree-1-1
- libostree-dev
- systemd-boot
- dracut
- grub-efi-amd64
- vim
- net-tools
- openssh-client
- openssh-server
- procps
- less
- dbus
- policykit-1
- libnss-resolve
- curl
- wget
- git-core
- rsync
- bubblewrap
- python3-apt
- python3-all
- python3-pip
- python3-pbr
- python3-gi
- python3-click
- python3-systemd
- mmdebstrap
- gobject-introspection
- gir1.2-ostree-1.0
- software-properties-common
- libnss-systemd