guardianproject/lildebi — pull request #15 by tias (2012-03-16 01:06:42+00:00)
Title: E: Failed getting release file

Hi,

When I ran lildebi, debootstrap (phase 1) gave me the following error:
I: Retrieving Release
E: Failed getting release file http://ftp.us.debian.org/debian/dists/stable/Release

The reason is that there is no /system/etc/resolv.conf on my android system (stock asus transformer, honeycomb)
surprisingly, ping to a host works, but nslookup of a host does not. And debootstrap does not either

The critical patch is:
'Ad-hoc creation of /system/etc/resolv.conf if it is missing'
What should really also be committed is:
'exit if debootstrap stage 1 failed'

The other patches contain minor modifications that make the script more verbose. They were needed for me to understand what was going on, and find the bug.
Also, the 'losetup' patches remove a call to 'losetup' that show an error in the log, while nothing is actually wrong.

I would like you to commit it all, but do as you wish.