diff options
-rw-r--r-- | meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 31 |
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 @@ | |||
1 | LICENSE = "MIT" | ||
2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
3 | SUMMARY = "Basic systemd-boot configuration files" | ||
4 | |||
5 | RPROVIDES_${PN} += "virtual/systemd-bootconf" | ||
6 | |||
7 | inherit systemd-boot-cfg | ||
8 | |||
9 | S = "${WORKDIR}" | ||
10 | |||
11 | LABELS = "boot" | ||
12 | |||
13 | ROOT ?= "root=/dev/sda2" | ||
14 | APPEND_append = " ${ROOT}" | ||
15 | |||
16 | python do_configure() { | ||
17 | bb.build.exec_func('build_efi_cfg', d) | ||
18 | } | ||
19 | |||
20 | do_configure[vardeps] += "APPEND" | ||
21 | |||
22 | do_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 | |||
31 | FILES_${PN} = "/boot/loader/* /boot/loader/entries/*" | ||