debian-forge/samples/f30-aarch64.json
Martin Sehnoutka 9acc0575ab samples: set legacy to false in f30 aarch64 sample
The "legacy" option in stages/org.osbuild.grub2 defaults to True:
`legacy = options.get("legacy", True)`
If both legacy and uefi is enable, the stage will try to create a hybrid
image, but that fails for aarch64. This patch makes sure we use uefi
mode only which fixed this issue.

I tested the patch by hand together with the fix from this PR:
https://github.com/osbuild/osbuild/pull/308
2020-04-01 18:29:43 +02:00

124 lines
2.9 KiB
JSON

{
"runner": "org.osbuild.fedora30",
"stages": [
{
"name": "org.osbuild.dnf",
"options": {
"releasever": "30",
"basearch": "aarch64",
"install_weak_deps": true,
"repos": [
"sha256:46f9d7fee4416eb6975903ce9650348e0b40e35503fe953bcdc12bb18db06bac"
],
"packages": [
"@Core",
"chrony",
"dracut-config-generic",
"efibootmgr",
"grub2-efi-aa64",
"grub2-tools",
"kernel",
"langpacks-en",
"qemu-guest-agent",
"selinux-policy-targeted",
"shim-aa64",
"spice-vdagent",
"xen-libs"
],
"exclude_packages": [
"dracut-config-rescue"
],
"module_platform_id": "platform:f30"
}
},
{
"name": "org.osbuild.locale",
"options": {
"language": "en_US"
}
},
{
"name": "org.osbuild.users",
"options": {
"users": {
"root": {
"password": "$6$LsodJXg8kj9G7sbe$8o6ZfPR4UMKE4MLcXTLukatY.YYXRuR4h9hV162numzgAZhn1Gb9Hkuua1s5unC1P0FMj47dGy9uxSdS3fhsX."
}
}
}
},
{
"name": "org.osbuild.fstab",
"options": {
"filesystems": [
{
"uuid": "7acfe2cc-4134-482a-a9d4-4979a5a87569",
"vfs_type": "ext4",
"path": "/",
"freq": 1,
"passno": 1
},
{
"uuid": "46BB-8120",
"vfs_type": "vfat",
"path": "/boot/efi",
"options": "umask=0077,shortname=winnt",
"freq": 0,
"passno": 2
}
]
}
},
{
"name": "org.osbuild.grub2",
"options": {
"root_fs_uuid": "7acfe2cc-4134-482a-a9d4-4979a5a87569",
"kernel_opts": "ro biosdevname=0 net.ifnames=0 console=ttyS0 console=tty1",
"legacy": false,
"uefi": {
"vendor": "fedora"
}
}
},
{
"name": "org.osbuild.selinux",
"options": {
"file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
}
},
{
"name": "org.osbuild.fix-bls"
}
],
"assembler": {
"name": "org.osbuild.qemu",
"options": {
"format": "qcow2",
"filename": "base.qcow2",
"size": 3221225472,
"ptuuid": "29579f67-d390-43e7-bd96-dc8f5461171e",
"pttype": "gpt",
"partitions": [
{
"start": 2048,
"size": 972800,
"type": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
"filesystem": {
"type": "vfat",
"uuid": "46BB-8120",
"label": "EFI System Partition",
"mountpoint": "/boot/efi"
}
},
{
"start": 976896,
"filesystem": {
"type": "ext4",
"uuid": "7acfe2cc-4134-482a-a9d4-4979a5a87569",
"mountpoint": "/"
}
}
]
}
}
}