diff options
Diffstat (limited to 'classes/rmc-boot.bbclass')
-rw-r--r-- | classes/rmc-boot.bbclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/rmc-boot.bbclass b/classes/rmc-boot.bbclass new file mode 100644 index 00000000..37c3e30c --- /dev/null +++ b/classes/rmc-boot.bbclass @@ -0,0 +1,17 @@ +# 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() { + if [ -f ${DEPLOY_DIR_IMAGE}/rmc.db ]; then + install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db + else + rm -f ${DEST}/rmc.db + fi +} |