name: "kernel-test"
description: "Test kernel installation and configuration for particle-os"
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
      update: true
      clean: true

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

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

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

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

output:
  formats: ["raw", "qcow2"]
  size: "8G"
  path: "kernel-test"

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