
# Add CoreOS A/B Switching support
# ==============================================================================

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://0001-coreos-add-a-coreos-specific-rootfs-switch-to-the-UK.patch"

# Add signature support
# ==============================================================================

DEPENDS:append = " cos-certificates-and-keys-native"

inherit coreos-efi-sbsign
require conf/image-uefi.conf

do_deploy:append() {

    if [ -f "${DEPLOYDIR}/efibootguard${EFI_ARCH}.efi" ]; then
        coreos_efi_secureboot_sign_app "${DEPLOYDIR}/efibootguard${EFI_ARCH}.efi"
    fi
}
