name: "realistic-test"
description: "Realistic test of complete particle-os pipeline with available packages"
base-image: "debian:trixie-slim"
image-version: "1.0.0"

stages:
  # Basic system setup
  - type: org.osbuild.debian.apt
    options:
      packages:
        - bash
        - coreutils
        - locales
        - systemd
        - linux-image-amd64
        - initramfs-tools
        - ostree
        - curl
        - wget
        - vim
      update: true
      clean: true

  # System configuration
  - type: org.osbuild.debian.locale
    options:
      language: en_US.UTF-8
      default_locale: en_US.UTF-8
      additional_locales:
        - en_US.UTF-8
        - C.UTF-8

  - type: org.osbuild.debian.timezone
    options:
      timezone: UTC

  - type: org.osbuild.debian.users
    options:
      users:
        admin:
          password: "$6$rounds=656000$salt$hashed_password"
          shell: /bin/bash
          groups: ["sudo", "users"]
          uid: 1000
          gid: 1000
          home: /home/admin
          comment: "Administrator User"

  # Kernel installation
  - type: org.osbuild.debian.kernel
    options:
      kernel_package: "linux-image-amd64"
      initramfs: true
      kernel_version: "6.12.41+deb13-amd64"
      kernel_args: "root=/dev/sda1 rw console=ttyS0,115200 init=/bin/bash"

  # Image creation
  - type: org.osbuild.qemu
    options:
      formats: ["raw", "qcow2"]
      size: "10G"
      filename: "realistic-test"

output:
  formats: ["raw", "qcow2"]
  size: "10G"
  path: "realistic-test"

metadata:
  author: "particle-os team"
  category: "testing"
  tags: ["realistic", "debian", "testing", "particle-os", "kernel"]
  target_audience: "Developers testing complete realistic pipeline"
  based_on: "debian:trixie-slim"
