pipeline/assembler/qemu: rework partition table handling
Move to the new options format, allowing more flexible partition tables. The pipeline changes, but the result should be the same. This requires a yet-to-be-released version of osbuild. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
dbdac222a5
commit
4c892d6d32
20 changed files with 283 additions and 84 deletions
|
|
@ -127,9 +127,20 @@
|
|||
"options": {
|
||||
"format": "raw.xz",
|
||||
"filename": "image.raw.xz",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -112,9 +112,20 @@
|
|||
"options": {
|
||||
"format": "raw",
|
||||
"filename": "disk.img",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -165,9 +165,20 @@
|
|||
"options": {
|
||||
"format": "raw",
|
||||
"filename": "disk.img",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,9 +116,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "image.qcow2",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -166,9 +166,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "image.qcow2",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,9 +117,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "disk.qcow2",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -167,9 +167,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "disk.qcow2",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,10 +170,20 @@
|
|||
"options": {
|
||||
"format": "raw.xz",
|
||||
"filename": "image.raw.xz",
|
||||
"size": 6442450944,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 6442450944
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,10 +128,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "image.qcow2",
|
||||
"size": 3221225472,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 3221225472
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,9 +145,20 @@
|
|||
"format": "raw",
|
||||
"filename": "disk.img",
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 3221225472
|
||||
"size": 3221225472,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,10 +155,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "disk.qcow2",
|
||||
"size": 3221225472,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 3221225472
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,10 +143,20 @@
|
|||
"options": {
|
||||
"format": "vpc",
|
||||
"filename": "image.vhd",
|
||||
"size": 3221225472,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 3221225472
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,10 +148,20 @@
|
|||
"options": {
|
||||
"format": "vmdk",
|
||||
"filename": "disk.vmdk",
|
||||
"size": 3221225472,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"root_fs_type": "xfs",
|
||||
"size": 3221225472
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "xfs",
|
||||
"uuid": "0bd700f8-090f-4556-b797-b340297ea1bd",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,9 +115,20 @@
|
|||
"options": {
|
||||
"format": "vpc",
|
||||
"filename": "image.vhd",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -165,9 +165,20 @@
|
|||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "image.vhd",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,9 +113,20 @@
|
|||
"options": {
|
||||
"format": "vmdk",
|
||||
"filename": "disk.vmdk",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -163,9 +163,20 @@
|
|||
"options": {
|
||||
"format": "vmdk",
|
||||
"filename": "disk.vmdk",
|
||||
"size": 3222274048,
|
||||
"ptuuid": "0x14fc63d2",
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"size": 3222274048
|
||||
"pttype": "mbr",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"bootable": true,
|
||||
"filesystem": {
|
||||
"type": "ext4",
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"mountpoint": "/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue