Skip to content
Snippets Groups Projects
Commit 0975aaa5 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

wic: add x-gpt-efi-disk workspace file


This file is derived from QEMU+EFI file we already have while having
wider scope of supporting both virtual and physical machines alike.

The partition table is GPT and the boot system is based on EFI. The
EFI_PROVIDER variable can be used to select either grub or systemd-boot.

Over time the qemu-specific workspace files will be deprecated and
removed. This step makes the transition easier to process.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 643de89a
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# short-description: Creates a GPT-partitioned disk with EFI bootloader
# long-description: The created disk is universal, and applies to physical and
# virtual machines alike. The particular bootloader can be controlled with
# EFI_PROVIDER.
#
# Disk layout:
# -- ------ ------- ------- --------- --------- ---------
# | | boot | sys-a | sys-b | devdata | sysdata | appdata |
# -- ------ ------- ------- --------- --------- ---------
# ^ ^
# | |
# 0 4096KiB
bootloader --ptable gpt --timeout=${WIC_BOOTLOADER_TIMEOUT} --append=" rootfstype=${ROOT_FSTYPE} "
part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --label ${BOOT_PARTITION_LABEL} --label boot --active --align 4096 --offset 4096 --fixed-size ${BOOT_PARTITION_SIZE}
${WIC_ROOTA_PARTITION}
${WIC_ROOTB_PARTITION}
${WIC_DEVDATA_PARTITION}
${WIC_SYSDATA_PARTITION}
${WIC_APPDATA_PARTITION}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment