From 48c335a46e03b46540a83a365fea76b92940927b Mon Sep 17 00:00:00 2001 From: Todor Minchev Date: Tue, 13 Dec 2016 14:56:49 -0800 Subject: rmc: add support for alternative EFI bootloaders RMC was previously configured to work only with the systemd-boot EFI bootloader. With this commit we can specify alternative bootloaders by setting the RMC_BOOTLOADER variable in local.conf. If RMC_BOOTLOADER is not set systemd-boot will be used by default. Signed-off-by: Todor Minchev Signed-off-by: California Sullivan --- classes/rmc-boot.bbclass | 13 +++++++++++++ classes/rmc-systemd-boot.bbclass | 12 ------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 classes/rmc-boot.bbclass delete mode 100644 classes/rmc-systemd-boot.bbclass (limited to 'classes') diff --git a/classes/rmc-boot.bbclass b/classes/rmc-boot.bbclass new file mode 100644 index 00000000..a1f2093f --- /dev/null +++ b/classes/rmc-boot.bbclass @@ -0,0 +1,13 @@ +# rmc-boot bbclass +# Deploy central RMC database file to ESP + +IMAGE_INSTALL_append = " rmc" +RMC_BOOTLOADER ?= "systemd-boot" + +inherit ${RMC_BOOTLOADER} + +do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" + +efi_populate_append() { + install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db +} diff --git a/classes/rmc-systemd-boot.bbclass b/classes/rmc-systemd-boot.bbclass deleted file mode 100644 index ad2cf106..00000000 --- a/classes/rmc-systemd-boot.bbclass +++ /dev/null @@ -1,12 +0,0 @@ -# rmc-systemd-boot bbclass -# Deploy central RMC database file to ESP - -IMAGE_INSTALL_append = " rmc" - -inherit systemd-boot - -do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" - -efi_populate_append() { - install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db -} -- cgit v1.2.3-54-g00ecf