main/anbox-image: make the workaround to #480 more reliable
The downside of this version is that it will "phone home" with a single ping to postmarketos.org each time anbox is started. On the other hand, Android does the same thing with google.com constantly, so well.
This also upgrades the version of FDroid used.
Merge request reports
Activity
added 1 commit
- 669b77cc - main/anbox-image: make the workaround to #480 (closed) more reliable
By Antoine Fontaine on 2020-06-18T11:33:33
- Resolved by Administrator
This also upgrades the version of FDroid used.
Is it possible to split this off in it's own commit?
By Bart Ribbers on 2020-06-18T12:10:28
Edited by Ghost User
added type::feature + 1 deleted label
added 2 commits
- 85c3a80b - main/anbox-image: make the workaround to #480 (closed) more reliable
- 7e7acbca - main/anbox-image: update F-Droid version
By Antoine Fontaine on 2020-06-18T12:09:52
- Resolved by Administrator
1 1 --- a/anbox-init.sh 2 2 +++ b/anbox-init.sh 3 @@ -36,5 +36,11 @@ prepare_filesystem & 3 @@ -36,5 +36,12 @@ prepare_filesystem & 4 4 echo "Waiting for filesystem being prepared ..." 5 5 wait $! 6 6 7 7 +( 8 +while ip route add default via 192.168.250.1; do 8 +while ! ping postmarketos.org -c 1; do how about... "while true"? Then the workaround should work most reliably, even if network goes down and comes up again. I don't think it costs that many resources, also you could increase the sleep to 3.
Maybe replace it with a small C program that does the same thing with a syscall, so you don't even need to spawn processes. Then keep that C program running in the background instead of these shell commands.
By Oliver Smith on 2020-06-20T09:39:44
changed this line in version 4 of the diff
By Antoine Fontaine on 2020-06-20T09:47:17
added 12 commits
-
7e7acbca...e3042a6f - 10 commits from branch
postmarketOS:master
- 29070216 - main/anbox-image: make the workaround to #480 (closed) more reliable
- e23c5cd7 - main/anbox-image: update F-Droid version
By Antoine Fontaine on 2020-06-20T09:47:18
-
7e7acbca...e3042a6f - 10 commits from branch
added backport-to-v20.05 label
1 1 --- a/anbox-init.sh 2 2 +++ b/anbox-init.sh 3 @@ -36,5 +36,11 @@ prepare_filesystem & 3 @@ -36,5 +36,12 @@ prepare_filesystem & 4 4 echo "Waiting for filesystem being prepared ..." 5 5 wait $! 6 6 7 7 +( 8 +while ip route add default via 192.168.250.1; do 8 +while ! ping 192.168.250.1 -c 1; do Can't reproduce with either iputils ping on Arch Linux:
$ ping 1.1.1.1 -c 1 PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. 64 bytes from 1.1.1.1: icmp_seq=1 ttl=59 time=6.20 ms --- 1.1.1.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 6.199/6.199/6.199/0.000 ms
Or busybox ping in pmbootstrap chroot:
/ # ping 1.1.1.1 -c 1 PING 1.1.1.1 (1.1.1.1): 56 data bytes 64 bytes from 1.1.1.1: seq=0 ttl=59 time=6.305 ms --- 1.1.1.1 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 6.305/6.305/6.305 ms / # apk info --who-owns $(which ping) /bin/ping symlink target is owned by busybox-1.32.0-r2
By Luca Weiss on 2020-08-29T12:53:33
replaced by !1798 (closed) and postmarketOS/pmbootstrap!2005
By Antoine Fontaine on 2020-12-14T15:31:16
mentioned in issue #1356
By Caleb Connolly on 2021-12-26T16:57:25