Skip to content

Conversation

@val4oss
Copy link

@val4oss val4oss commented Nov 25, 2025

Provide a step by step guide to how to test the generated particleos image. That can help developer for testing their contributions.

Provide a step by step guide to how to test the generated particleos
image. That can help developer for testing their contributions.
Copy link
Collaborator

@DaanDeMeyer DaanDeMeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be duplicating too much from the readme. Frankly I'd much prefer adding a few of the missing sections to the readme rather than introducing a new document and repeating everything there

Comment on lines +10 to +27
Welcome to the **particleOS Testing and Validation Guide**. This document
outlines the comprehensive procedure for developers and contributors, covering
the entire workflow from building the particle OS image to performing an
installation on a simulated empty drive and finally testing the resulting
installed system within a Virtual Machine environment.

The goal is to provide clear, actionable instructions to facilitate a smooth
setup of your development environment, enabling effective building,
installation, and testing of changes to the particleOS project.

Welcome to the particleos testing guide! This document provides the step by step
guide from the particleOS image creation to the test in Virtual Machine
of the final installed image, going through the installation process on an
empty drive.

It aims to be a comprehensive guide for developers who want to contribute to the
project by providing clear instructions on how to set up a development
environment, build the project, and test their changes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're saying the same thing twice in this section did you proofread this?


### Environment setup

* Before you start testing on particleos, make sure to have the **lastest**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lastest?

Comment on lines +34 to +56
version of `mkosi` accessible from your path-environment.

```bash
cd ${WORKDIR}
git clone https://github.com/systemd/mkosi.git
export PATH="${WORKDIR}/mkosi/bin/:${PATH}"
```

* `mkosi` requires Python 3.8 or higher. You can install the lastest python
version and force the Interpreter as follow:

```bash
export MKOSI_INTERPRETER="/usr/bin/python3.12"
```

* Verify the version of mkosi installed:

```bash
mkosi --version
```

* You will also need `qemu` installed on your system to test the created images in
a virtual machine.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just rewording mkosi's readme. Please link to the mkosi documentation instead of repeating this all here.

* You will also need `qemu` installed on your system to test the created images in
a virtual machine.

### Lastest systemd version (optional but recommended)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lastest

Comment on lines +74 to +87
```conf
[Match]
Distribution=opensuse

[Distribution]
Release=tumbleweed

[Runtime]
VirtualMachineMonitor=qemu

QemuArgs=
-drive if=none,file=./mkosi.output/target-disk.img,format=raw,id=installdisk
-device virtio-blk-pci,drive=installdisk
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flat out doesn't work on any distribution other than opensuse because of the [Match]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants