test/data: add fedora ostree image manifest
Add a new manifest that creates an ostree commit, deploys that, creates a raw image and copies the deployment into it. The resulting artefact is a bootlabel qcow2 image.
This commit is contained in:
parent
8dde9d9590
commit
8a7596c691
2 changed files with 1844 additions and 0 deletions
1474
test/data/manifests/fedora-ostree-image.json
Normal file
1474
test/data/manifests/fedora-ostree-image.json
Normal file
File diff suppressed because it is too large
Load diff
370
test/data/manifests/fedora-ostree-image.mpp.json
Normal file
370
test/data/manifests/fedora-ostree-image.mpp.json
Normal file
|
|
@ -0,0 +1,370 @@
|
|||
{
|
||||
"version": "2",
|
||||
"pipelines": [
|
||||
{
|
||||
"mpp-import-pipeline": {
|
||||
"path": "f34-build-v2.json",
|
||||
"id": "build"
|
||||
},
|
||||
"runner": "org.osbuild.fedora34"
|
||||
},
|
||||
{
|
||||
"name": "ostree-tree",
|
||||
"build": "name:build",
|
||||
"stages": [
|
||||
{
|
||||
"type": "org.osbuild.rpm",
|
||||
"options": {
|
||||
"gpgkeys": [
|
||||
"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBF1RVqsBEADWMBqYv/G1r4PwyiPQCfg5fXFGXV1FCZ32qMi9gLUTv1CX7rYy\nH4Inj93oic+lt1kQ0kQCkINOwQczOkm6XDkEekmMrHknJpFLwrTK4AS28bYF2RjL\nM+QJ/dGXDMPYsP0tkLvoxaHr9WTRq89A+AmONcUAQIMJg3JxXAAafBi2UszUUEPI\nU35MyufFt2ePd1k/6hVAO8S2VT72TxXSY7Ha4X2J0pGzbqQ6Dq3AVzogsnoIi09A\n7fYutYZPVVAEGRUqavl0th8LyuZShASZ38CdAHBMvWV4bVZghd/wDV5ev3LXUE0o\nitLAqNSeiDJ3grKWN6v0qdU0l3Ya60sugABd3xaE+ROe8kDCy3WmAaO51Q880ZA2\niXOTJFObqkBTP9j9+ZeQ+KNE8SBoiH1EybKtBU8HmygZvu8ZC1TKUyL5gwGUJt8v\nergy5Bw3Q7av520sNGD3cIWr4fBAVYwdBoZT8RcsnU1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QWRO\n-----END PGP PUBLIC KEY BLOCK-----\n"
|
||||
]
|
||||
},
|
||||
"inputs": {
|
||||
"packages": {
|
||||
"type": "org.osbuild.files",
|
||||
"origin": "org.osbuild.source",
|
||||
"mpp-depsolve": {
|
||||
"architecture": "x86_64",
|
||||
"module-platform-id": "f34",
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/f34/f34-x86_64-fedora-20210512/",
|
||||
"repos": [
|
||||
{
|
||||
"id": "default",
|
||||
"baseurl": "https://rpmrepo.osbuild.org/v2/mirror/public/f34/f34-x86_64-fedora-20210512/"
|
||||
}
|
||||
],
|
||||
"packages": [
|
||||
"@cloud-server-environment",
|
||||
"chrony",
|
||||
"dracut-config-generic",
|
||||
"grub2-pc",
|
||||
"kernel-core",
|
||||
"langpacks-en",
|
||||
"nss-altfiles",
|
||||
"ostree",
|
||||
"polkit",
|
||||
"rpm-ostree",
|
||||
"selinux-policy-targeted",
|
||||
"systemd-udev"
|
||||
],
|
||||
"excludes": [
|
||||
"dracut-config-rescue"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.locale",
|
||||
"options": {
|
||||
"language": "en_US"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.selinux",
|
||||
"options": {
|
||||
"file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.ostree.preptree",
|
||||
"options": {
|
||||
"etc_group_members": [
|
||||
"wheel",
|
||||
"docker"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ostree-commit",
|
||||
"build": "name:build",
|
||||
"stages": [
|
||||
{
|
||||
"type": "org.osbuild.ostree.init",
|
||||
"options": {
|
||||
"path": "/repo"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.ostree.commit",
|
||||
"inputs": {
|
||||
"tree": {
|
||||
"type": "org.osbuild.tree",
|
||||
"origin": "org.osbuild.pipeline",
|
||||
"references": [
|
||||
"name:ostree-tree"
|
||||
]
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"ref": "fedora/x86_64/osbuild",
|
||||
"os_version": "34"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "image-tree",
|
||||
"build": "name:build",
|
||||
"stages": [
|
||||
{
|
||||
"type": "org.osbuild.ostree",
|
||||
"inputs": {
|
||||
"commit": {
|
||||
"type": "org.osbuild.ostree",
|
||||
"origin": "org.osbuild.pipeline",
|
||||
"references": [
|
||||
"name:ostree-commit"
|
||||
]
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"osname": "fedora",
|
||||
"ref": "fedora/x86_64/osbuild",
|
||||
"mounts": [
|
||||
{
|
||||
"path": "/boot"
|
||||
},
|
||||
{
|
||||
"path": "/boot/efi",
|
||||
"mode": 448
|
||||
}
|
||||
],
|
||||
"rootfs": {
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac"
|
||||
},
|
||||
"kernel_opts": [
|
||||
"console=tty0",
|
||||
"console=ttyS0",
|
||||
"systemd.log_target=console",
|
||||
"systemd.journald.forward_to_console=1"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.grub2",
|
||||
"options": {
|
||||
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"boot_fs_uuid": "156f0420-627b-4151-ae6f-fda298097515",
|
||||
"uefi": {
|
||||
"vendor": "fedora",
|
||||
"install": true
|
||||
},
|
||||
"legacy": "i386-pc",
|
||||
"write_defaults": false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "image",
|
||||
"build": "name:build",
|
||||
"stages": [
|
||||
{
|
||||
"type": "org.osbuild.truncate",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"size": "10737418240"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.sfdisk",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"uuid": "D209C89E-EA5E-4FBD-B161-B461CCE297E0",
|
||||
"label": "gpt",
|
||||
"partitions": [
|
||||
{
|
||||
"start": 2048,
|
||||
"size": 2048,
|
||||
"type": "21686148-6449-6E6F-744E-656564454649",
|
||||
"bootable": true,
|
||||
"uuid": "FAC7F1FB-3E8D-4137-A512-961DE09A5549"
|
||||
},
|
||||
{
|
||||
"start": 4096,
|
||||
"size": 204800,
|
||||
"type": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
|
||||
"uuid": "68B2905B-DF3E-4FB3-80FA-49D1E773AA33"
|
||||
},
|
||||
{
|
||||
"start": 208896,
|
||||
"size": 204800,
|
||||
"type": "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
|
||||
"uuid": "61B2905B-DF3E-4FB3-80FA-49D1E773AA32"
|
||||
},
|
||||
{
|
||||
"start": 413696,
|
||||
"size": 20557791,
|
||||
"type": "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
|
||||
"uuid": "6264D520-3FB9-423F-8AB8-7A0A8E3D3562"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.mkfs.fat",
|
||||
"devices": {
|
||||
"device": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 4096,
|
||||
"size": 204800
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"label": "ESP",
|
||||
"volid": "7B7795E7"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.mkfs.ext4",
|
||||
"devices": {
|
||||
"device": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 208896,
|
||||
"size": 204800
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"uuid": "156f0420-627b-4151-ae6f-fda298097515",
|
||||
"label": "boot"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.mkfs.xfs",
|
||||
"devices": {
|
||||
"device": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 413696,
|
||||
"size": 20557791
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
|
||||
"label": "root"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.copy",
|
||||
"inputs": {
|
||||
"tree": {
|
||||
"type": "org.osbuild.tree",
|
||||
"origin": "org.osbuild.pipeline",
|
||||
"references": [
|
||||
"name:image-tree"
|
||||
]
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"paths": [
|
||||
{
|
||||
"from": "input://tree/",
|
||||
"to": "mount://root/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": {
|
||||
"efi": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 4096,
|
||||
"size": 204800
|
||||
}
|
||||
},
|
||||
"boot": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 208896,
|
||||
"size": 204800
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"type": "org.osbuild.loopback",
|
||||
"options": {
|
||||
"filename": "disk.img",
|
||||
"start": 413696,
|
||||
"size": 20557791
|
||||
}
|
||||
}
|
||||
},
|
||||
"mounts": {
|
||||
"root": {
|
||||
"type": "org.osbuild.xfs",
|
||||
"source": "root",
|
||||
"target": "/"
|
||||
},
|
||||
"boot": {
|
||||
"type": "org.osbuild.ext4",
|
||||
"source": "boot",
|
||||
"target": "/boot"
|
||||
},
|
||||
"efi": {
|
||||
"type": "org.osbuild.fat",
|
||||
"source": "efi",
|
||||
"target": "/boot/efi"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.grub2.inst",
|
||||
"options": {
|
||||
"platform": "i386-pc",
|
||||
"filename": "disk.img",
|
||||
"location": 2048,
|
||||
"core": {
|
||||
"type": "mkimage",
|
||||
"partlabel": "gpt",
|
||||
"filesystem": "ext4"
|
||||
},
|
||||
"prefix": {
|
||||
"type": "partition",
|
||||
"partlabel": "gpt",
|
||||
"number": 2,
|
||||
"path": "/grub2"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "qcow2",
|
||||
"build": "name:build",
|
||||
"stages": [
|
||||
{
|
||||
"type": "org.osbuild.qemu",
|
||||
"inputs": {
|
||||
"image": {
|
||||
"type": "org.osbuild.files",
|
||||
"origin": "org.osbuild.pipeline",
|
||||
"references": {
|
||||
"name:image": {
|
||||
"file": "disk.img"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"filename": "disk.qcow2",
|
||||
"format": {
|
||||
"type": "qcow2",
|
||||
"compat": "1.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue