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:
Tom Gundersen 2019-12-11 22:34:51 +01:00 committed by Lars Karlitski
parent dbdac222a5
commit 4c892d6d32
20 changed files with 283 additions and 84 deletions

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
}

View file

@ -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": "/"
}
}
]
}
}
},

View file

@ -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": "/"
}
}
]
}
}
}