[OE-core] [PATCH v2] Fix cp's target path for ext* filesystems

Leonardo Rangel leobsd at gmail.com
Fri Feb 8 16:41:56 UTC 2019


> On Fri, 2019-02-08 at 00:20 -0800, Leonardo Augusto wrote:
[...]
> >
> > diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
> > index 4662c665c0..b4be796752 100644
> > --- a/scripts/lib/wic/engine.py
> > +++ b/scripts/lib/wic/engine.py
> > @@ -331,7 +331,7 @@ class Disk:
> >      def copy(self, src, pnum, path):
> >          """Copy partition image into wic image."""
> >          if self.partitions[pnum].fstype.startswith('ext'):
> > -            cmd = "echo -e 'cd {}\nwrite {} {}' | {} -w {}".\
> > +            cmd = "echo 'cd {}\nwrite {} {}' | {} -w {}".\
>
> This causes some shell's echos to output a literal \n (two characters,
'\'
> and 'n').
>
> The solution should be to use printf instead of echo...

Yes, indeed. I've just sent out a v3 based on your suggestion.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190208/6480ca6b/attachment-0001.html>


More information about the Openembedded-core mailing list