<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 7:56 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Aug 09, 2011 at 09:41:47AM -0700, David Konerding wrote:<br>
> It's a Lucid Lynx derivative,  and we don't have that package.  Maybe I can<br>
> shoehorn it in.<br>
<br>
</div>The one I'm routinely building on is 11.04.<br>
<br>
[...]<br>
<div class="im">> > The problem is that both /bin/bash and libc are completely missing<br>
> > from the appliance.<br>
> ><br>
> ><br>
> i see.<br>
><br>
><br>
> > During the build, was febootstrap able to download all the packages it<br>
> > needed?<br>
> ><br>
> ><br>
> Looks like it (I see a bunch of package downloads, none of them failed).<br>
> However, I re-ran this, and I see this (the list is some ~thousands of<br>
> files, I guess the entire unpacked root filesystem?)<br>
><br>
> febootstrap: warning: some host files are unreadable by non-root<br>
> febootstrap: warning: get your distro to fix these files:<br>
>         /bin/bash<br>
>         /bin/cat<br>
<br>
</div>OK, why is /bin/bash unreadable by non-root?  Is the real /bin/bash<br>
unreadable?<br>
<div class="im"><br></div></blockquote><div><br></div><div>BTW, it's actually a list of ~8000 files (looks like all the unpacked files from all the .debs that got downloadeD).</div><div><br></div><div>I stopped feboostrap during its download after it downloaded the .deb for bash (there seems to be no option to force febootstrap to not clean up /tmp/febootstrap* after running).</div>
<div><br></div><div>I see no reason why feboostrap wouldn't be able to read these files:</div><div>2318338    4 drwxr-xr-x   2 dek      redacted          4096 Aug 10 09:39 /tmp/bashpkg/bin</div><div>2318444    0 lrwxrwxrwx   1 dek      redacted             4 Aug 10 09:39 /tmp/bashpkg/bin/sh -> bash</div>
<div>2318443    0 lrwxrwxrwx   1 dek      redacted             4 Aug 10 09:39 /tmp/bashpkg/bin/rbash -> bash</div><div>2318339  920 -rwxr-xr-x   1 dek      redacted        934336 Apr 18  2010 /tmp/bashpkg/bin/bash </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> I am going to try to reproduce this step with strace to see what the<br>
> underlying problem is.  Well, that wasn't very useful- I don't see any calls<br>
> to /bin/bash in the host file system that are failing.<br>
<br>
</div>What febootstrap does is it downloads the bash package (ie. .deb file),<br>
unpacks it, and then looks at the permissions of the files in it.<br>
See:<br>
<br>
<a href="http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_debian.ml;hb=HEAD" target="_blank">http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_debian.ml;hb=HEAD</a><br>
<br>
So it never looks at /bin/bash on the filesystem.<br>
<br>
Having said that, why would /bin/bash be unreadable in the package?<br>
I've no idea, it could have been a bug in Lucid that was fixed later.<br>
Or it could be some bug in febootstrap that only affects this older<br>
version of Ubuntu, but not 11.04.<br>
<div class="im"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div>virt-p2v converts physical machines to virtual machines.  Boot with a<br>
live CD or over the network (PXE) and turn machines into Xen guests.<br>
<a href="http://et.redhat.com/~rjones/virt-p2v" target="_blank">http://et.redhat.com/~rjones/virt-p2v</a><br>
</blockquote></div><br>