[elbe-devel] [PATCH] init init-elbe.sh.mako: fix schema validation
torben.hohn at linutronix.de
torben.hohn at linutronix.de
Fri Jan 24 19:58:45 CET 2020
On Fri, Jan 17, 2020 at 07:34:48PM +0100, bage at linutronix.de wrote:
> 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>
ok lets take this...
Reviewed-by: Torben Hohn <torbenh.hohn at linutronix.de>
we need to check, whether devel mode was working all the time.
it uses an absolute path, but /var/cache/elbe does not sound like a
legal path for executables :(
> ---
> 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
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
More information about the elbe-devel
mailing list