summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd-bootconf_1.00.bb31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
new file mode 100644
index 0000000000..e9c2466456
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
@@ -0,0 +1,31 @@
1LICENSE = "MIT"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
3SUMMARY = "Basic systemd-boot configuration files"
4
5RPROVIDES_${PN} += "virtual/systemd-bootconf"
6
7inherit systemd-boot-cfg
8
9S = "${WORKDIR}"
10
11LABELS = "boot"
12
13ROOT ?= "root=/dev/sda2"
14APPEND_append = " ${ROOT}"
15
16python do_configure() {
17 bb.build.exec_func('build_efi_cfg', d)
18}
19
20do_configure[vardeps] += "APPEND"
21
22do_install() {
23 install -d ${D}/boot
24 install -d ${D}/boot/loader
25 install -d ${D}/boot/loader/entries
26 install loader.conf ${D}/boot/loader/
27 rm loader.conf
28 install *.conf ${D}/boot/loader/entries/
29}
30
31FILES_${PN} = "/boot/loader/* /boot/loader/entries/*"