Short summary:<div>my umask was set to 0027 and this was causing tar to extract the files with screwed up permissions.<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 12:09 PM, 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 Wed, Aug 10, 2011 at 11:27:34AM -0700, David Konerding wrote:<br>
> This fetches bash, dash, and a number of other packages.  It reports:<br>
> 1719 files and directories<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>
>         /bin/chgrp<br>
>         /bin/chmod<br>
> ...<br>
><br>
> There are 1361 files in the list.<br>
<br>
</div>I went back to febootstrap from git, recompiled with the latest<br>
version, and also made sure my Ubuntu 11.04 system was fully up to<br>
date and had been rebooted.<br>
<br>
'./febootstrap -v --names bash' downloaded 42 packages from natty.<br>
There were no warnings about unreadable host files.<br>
<br>
It seems clear enough to me that the warnings you are seeing are the<br>
root cause of your problems.  The test that is failing is 'mode & 004 == 0',<br>
so either mode is being read incorrectly, or that test is failing.<br>
The mode of /tmp/.../bin/bash (-rwxr-xr-x == 0755) would appear to be<br>
correct.<br>
<br>
I'm afraid I don't know why you're seeing these warnings.  I think<br>
your best bet would be to grab febootstrap from git, sprinkle a few<br>
printf statements around, and try to see what's going on.<br>
<div class="im"><br>
> > If base.img and hostfiles look reasonable, try building an appliance<br>
> > from them:<br>
> ><br>
> ><br>
> Looking at hostfiles, there is no /bin/bash, but there is /bin/sh and<br>
> /bin/rbash (BTW, Ubuntu uses dash as the main /bin/sh, not bash, but I<br>
> assume that's not relevant).  sh is a symlink to bash, as is rbash.<br>
<br>
</div>Because of the warning above, febootstrap doesn't include the<br>
filenames in hostfiles:<br>
<br>
<a href="http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap.ml;h=7e48206e88ac6e3f97a9cda80fbcb3a16c80074e;hb=HEAD#l247" target="_blank">http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap.ml;h=7e48206e88ac6e3f97a9cda80fbcb3a16c80074e;hb=HEAD#l247</a><br>

<div class="im"><br>
> I extracted base.img, and it doesn't include any files in /bin.  It looks<br>
> like all the files in that archive are text/config files or symlinks.<br>
<br>
</div>This is correct.<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-top is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://et.redhat.com/~rjones/virt-top" target="_blank">http://et.redhat.com/~rjones/virt-top</a><br>
</blockquote></div><br></div>