aboutsummaryrefslogtreecommitdiffstats
path: root/classes/rmc-boot.bbclass
blob: 37c3e30c8bd1f03a68bfb1df35b327bdb4eb8fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}