[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5972/8267] systemd-boot: create output dir if it doesn't exist



commit 95bdb9a1bc1cf56d5c631aec8a0f70fa0aced976
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   Wed May 17 12:07:47 2017 +0300

    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.
    
    (From OE-Core rev: 2731d1efba7a03b2c658c8bb57629f5469184599)
    
    Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/systemd-boot.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 4e69a2c..4412fb1 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")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]