Open ptone opened 6 years ago
Drew's suspicion about /etc/hosts maybe valid:
https://superuser.com/questions/1311955/etc-hosts-cant-be-a-symbolic-link
If some processes will not resolve symlink
I don't think a hardlink can work across artifacts - which leads us to a mender level exec script that can get the right info from a future /data/mender/mender.conf on boot (before mender agent runs)
updated the original issue to include #23 here
Dang. I guess the changes I made in https://github.com/Kcr19/mender_gcp_ota_demo/pull/26 need to be backed out, at least for etc/hosts. I'll put together a PR that does that and moves /opt/gcp/bin/gcp.sh to /data.
I'll also take a swing at a preExec script that will update /etc/hosts.
PR #27 moves all files from /opt/gcp/etc/ into /data/gcp. That should resolve most of this but I'm still looking at the /etc/hosts file bits.
OK. PR #27 now has the hosts file moved back into /etc.
If we can symlink:
/etc/hosts
/opt/gcp/bin/gcp.sh
/etc/mender/mender.conf -> /data/mender/mender.conf
These will allow artifacts to work post boot for tutorial-user builds, as well as for using prebuilt images