bootc-dev / bootc-dev/bootc

frontend for systemd-sysext

Ouverte
#7 10 commentaires 15 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
2.3k
Forks
230
Merge moyen
3 j 12 h
PR mergées (30 j)
38

Description

Let's add first class support for [systemd-sysext](https://www.freedesktop.org/software/systemd/man/latest/systemd-sysext.html) - but instead of being DDI oriented we fetch and upgrade them from a registry.

Something like:

```
$ bootc sysext -M add quay.io/examplecorp/exampleos-debugtools:latest
```

`-M` here means to automatically run `systemd-sysext merge` after the operation. We'd store the sysexts in `/var/lib/extensions` by default. Other operations:

```
$ bootc sysext rm
$ bootc sysext rm --all
```

These would only remove sysexts that we "own" or write.

Also, `bootc upgrade` by default should error out if a target sysext is incompatible.

---

Original issue:

I think it would make sense to support functionality similarly to https://www.freedesktop.org/software/systemd/man/systemd-sysext.html - we could even use that as a backend, though it needs some design around interactions eventually lowering "live apply" type flows.

A strawman could look like:

```
$ bootc overlay add quay.io/examplecorp/seattle-manufacturing:wifi
```

That would add a new container image that would be *dynamically* unioned with the host's rootfs - on updates, we reapply both - and we'd also verify compatibility and fail if e.g. they appeared somehow incompatible. (A lot of potential things to do in "verify compatibility...")

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by reading the linked systemd-sysext documentation and the issue's proposed CLI examples. Work out the registry, ownership, merge, removal, and upgrade-compatibility requirements before locating the relevant bootc command structure. Done means the supported sysext operations and upgrade behavior are designed and implemented with validation for incompatible targets.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
cli, operating-systems
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.