Re: [PATCH] kvm tools: ignore nonexisting custom stage2

Sasha Levin
2011-12-21T10:18:36Z

On Wed, 2011-12-21 at 14:15 +0400, Konstantin Khlebnikov wrote:
> Sasha Levin wrote:
> > On Wed, 2011-12-21 at 13:49 +0400, Konstantin Khlebnikov wrote:
> >> Sasha Levin wrote:
> >>> On Wed, 2011-12-21 at 13:15 +0300, Konstantin Khlebnikov wrote:
> >>>> fix permanent failing with message "Fatal: Failed linking stage 2 of init."
> >>>> if there is no custom init_stage2.
> >>>
> >>> Why would it happen? whats the usecase?
> >>>
> >>
> >> run "lkvm run" in dir there is no "guest" subdirectory
> >
> > Yup, but how would that happen? 'guest' is part of the git tree and the
> > makefile builds the executables in it.
> >
>
> Current wokring directory can be anything,
> or lkvm supposed to work only if cwd is .../linux-kvm/tools/kvm ? =)

Right, so this is the issue that should really be fixed.

If you omit the 'guest' directory, custom rootfs won't work at all
either, so just ignoring that check would lead to breakage later on.

--

Sasha.