From 2731d1efba7a03b2c658c8bb57629f5469184599 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 17 May 2017 12:07:47 +0300 Subject: systemd-boot: create output dir if it doesn't exist build_efi_cfg function creates configuration files for systemd-boot entries in 'S' directory. This directory may not exist when api is called, which breaks the build. Creating the directory if it doesn't exist should fix this issue. Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- meta/classes/systemd-boot.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta') diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass index 4e69a2c6b5..4412fb1ef7 100644 --- a/meta/classes/systemd-boot.bbclass +++ b/meta/classes/systemd-boot.bbclass @@ -99,6 +99,8 @@ python build_efi_cfg() { bb.fatal('OVERRIDES not defined') entryfile = "%s/%s.conf" % (s, label) + if not os.path.exists(s): + os.makedirs(s) d.appendVar("SYSTEMD_BOOT_ENTRIES", " " + entryfile) try: entrycfg = open(entryfile, "w") -- cgit 1.2.3-korg