debian-forge/devices
Achilleas Koutsou 0695911d5c devices: add new vg_partnum parameter
This is needed for bootc where all mounts need to be from the same
physical disk/loop so that bootupd works. The idea is that in the
manifest the new option `vg_partnum` is added and the parent VG
is found via the partition number of the full image similar to
the `partnum` from https://github.com/osbuild/osbuild/pull/1501

A manifest using this feature looks like this:
```json
"devices": {
  "disk": {
    "type": "org.osbuild.loopback",
    "options": {
      "filename": "disk.raw",
      "partscan": true
    }
  },
  "rootlv": {
    "type": "org.osbuild.lvm2.lv",
    "parent": "disk",
    "options": {
      "volume": "rootlv",
      "vg_partnum": 4
    }
  }
}
```

Co-authored-by: Michael Vogt <mvogt@redhat.com>
2024-08-26 14:16:01 +02:00
..
test devices: add pytest conftest infra for devices 2024-08-26 14:16:01 +02:00
org.osbuild.loopback devices/loopback: enable partition scanning as an option 2023-12-22 10:18:29 -05:00
org.osbuild.luks2 devices/luks2: use new ensure_device_node helper 2022-11-22 18:28:38 +01:00
org.osbuild.lvm2.lv devices: add new vg_partnum parameter 2024-08-26 14:16:01 +02:00