[elbe-devel] [PATCH] Ignore initvm directory

Yegor Yefremov yegorslists at googlemail.com
Tue Mar 28 15:32:24 CEST 2023


On Tue, Mar 28, 2023 at 1:35 PM Bastian Germann <bage at linutronix.de> wrote:
>
> Am 28.03.23 um 12:48 schrieb yegorslists at googlemail.com:
> > From: Yegor Yefremov <yegorslists at googlemail.com>
> >
> > Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
>
> NACK. You are not supposed to have the initvm in the same directory as elbe.
> When you use elbe initvm --devel, ythi swould lead to the initvm's files being copied to itself.

I have changed "initvm/" to "initvm". This way it will be ignored by
the --exclude-vcs-ignores tar option (see init.py [1]). But we can
also add it explicitly:

opts.append("--exclude=initvm")

What do you think?

[1] https://github.com/Linutronix/elbe/blob/master/elbepack/commands/init.py#L250

> > ---
> >   .gitignore | 1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/.gitignore b/.gitignore
> > index ffd25c0b..f3f10f24 100644
> > --- a/.gitignore
> > +++ b/.gitignore
> > @@ -56,3 +56,4 @@ contrib/debathena-transform-lighttpd/debian/*.log
> >   contrib/debathena-transform-lighttpd/debian/debathena-transform-lighttpd/
> >   contrib/debathena-transform-lighttpd/debian/debhelper-build-stamp
> >   contrib/debathena-transform-lighttpd/debian/files
> > +initvm/


More information about the elbe-devel mailing list