[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4034/8267] systemd-boot.bbclass: Fix SYSYTEMD_BOOT_CFG creation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4034/8267] systemd-boot.bbclass: Fix SYSYTEMD_BOOT_CFG creation
- Date: Sun, 17 Dec 2017 01:28:12 +0000 (UTC)
commit 928a93d516756126ee863614c7cd6559957cfa7b
Author: Alejandro Hernandez <alejandro hernandez linux intel com>
Date: Mon Dec 5 11:00:56 2016 -0600
systemd-boot.bbclass: Fix SYSYTEMD_BOOT_CFG creation
This patch makes sure the directory which will contain
the systemd configuration (loader.conf) is created before
the configuration file is written, fixing errors when it
tried to write it to a non-existent directory
(From OE-Core rev: f4ba23212c97fb8c3351a3cf981ee355ae2fc9b1)
Signed-off-by: Alejandro Hernandez <alejandro hernandez 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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 6718783..6a2cbc8 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -72,6 +72,9 @@ python build_efi_cfg() {
return
cfile = d.getVar('SYSTEMD_BOOT_CFG')
+ cdir = os.path.dirname(cfile)
+ if not os.path.exists(cdir):
+ os.makedirs(cdir)
try:
cfgfile = open(cfile, 'w')
except OSError:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]