[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] appliance VM won't start, can't find /init, but /init is in the image.

On Fri, Aug 12, 2011 at 9:52 AM, David Konerding <dek konerding com> wrote:

On Fri, Aug 12, 2011 at 9:39 AM, Richard W.M. Jones <rjones redhat com> wrote:
On Fri, Aug 12, 2011 at 09:34:38AM -0700, David Konerding wrote:
> Gotcha.  I can confirm that
> $ apt-cache depends --recurse -i bash libc6 | grep -v '^[<[:space:]]' | grep
> libc
> is empty, while
> $ apt-cache depends --recurse -i libc6 | grep -v '^[<[:space:]]' | grep libc
> lists libc6.
> Just to explore a bit more:
> $ apt-cache depends --recurse -i bash libc6
> bash
>   Depends: base-files
>   Depends: debianutils
>   PreDepends: dash
>   PreDepends: libc6
>   PreDepends: libncurses5
> I'm going to check with our local distribution developers and see what's
> going on.

Simplest workaround is to add any packages that are missing directly to:


then rebuild the appliance (make -C appliance clean all).

Are you sure this should work?  I see that libc6 makes it into packagelist, and the febootstrap invocation includes libc6, but it never downloads libc6.

I did a few verification steps:
1) aptitude download libc6 works
2) extracting the deb works

so it seems like there is some step between listing a package in packagelist, and febootstrap actually invoking the aptitutde download command for the package.  I've skimmed the febootstrap code, it doesn't seem like it would actively filter anything not in the exclude list (which I verified doesn't list libc6).
Possibly febootstrap should include PreDepends dependencies?  For some
reason this issue doesn't affect us on Debian / Ubuntu later versions.

I'm guessing this has to be a bug in Ubuntu 10.04 apt-cache.  If I leave out --recurse, 
$ apt-cache depends -i bash libc6 | grep -v '^[<[:space:]]' | grep libc

Adding --recurse should not cause packages to not be listed.  I imagine whatever bug caused this was fixed between the 10.04 and 10.10, since my home box running 10.10 doesn't have this problem.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]