by ilikenwf » Wed Sep 05, 2012 4:49 am
$this->bbcode_second_pass_quote('weaponseventeen', '
')This produces obvious errors such as when running pacman, after "checking for file conflicts", I get a series of warnings like:
"warning: could not get filesystem information for /acct: No such file or directory"
and for all other android mount points not present in the archarm chroot.
I found a dirty hack to get around this, but in the end, you'll probably need to just rebuild the mtab every time with your bash script to start the chroot up...
To workaround temporarily, you start the chroot with your bound mounts, and then delete /etc/mtab...then, cp /proc/mounts /etc/mtab.
Open /etc/mtab in your favorite editor, and only leave the following lines - of course, you'll need to adjust this if you're binding the sdcard, etc to a directory within the chroot by adding a line for it.
$this->bbcode_second_pass_code('', '
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
')
As dirty a hack as it is, you need to first copy /proc/mounts to /etc/mtab
Some other tips:
pacman -Rdd linux linux-api-headers linux-firmware linux-headers (save ~105mb)
Also, we should look into borrowing the better features of the debian-kit...the source is open. We should also port the androdns resolver thing it uses, as well as it's "andromize" scripts.
http://sourceforge.net/p/debian-kit/code/