[elbe-devel] [PATCH] init init-elbe.sh.mako: fix schema validation

bage at linutronix.de bage at linutronix.de
Fri Jan 17 19:34:48 CET 2020


From: Bastian Germann <bage at linutronix.de>

The init-elbe.sh script runs in installer context.
Running the lxml validation at this point yields an IOError:
Error reading file 'https://www.linutronix.de/projects/Elbe/dbsfed.xsd': failed
to load external entity "https://www.linutronix.de/projects/Elbe/dbsfed.xsd".

The error is not triggered on changing the elbe executable to an absolute path.
As lxml is a native module this might be related to #226 or some AppArmor rule.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/init/init-elbe.sh.mako | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/init/init-elbe.sh.mako b/elbepack/init/init-elbe.sh.mako
index bad46bfe1..c5d56d3f4 100644
--- a/elbepack/init/init-elbe.sh.mako
+++ b/elbepack/init/init-elbe.sh.mako
@@ -7,7 +7,7 @@
 ##
 #! /bin/sh
 <%
-elbe_exe = 'elbe'
+elbe_exe = '/usr/bin/elbe'
 
 if opt.devel:
     elbe_exe = '/var/cache/elbe/devel/elbe'
-- 
2.20.1




More information about the elbe-devel mailing list