Kcr19 / mender_gcp_ota_demo

Demo scripts for a GCP+Mender demo.
Apache License 2.0
0 stars 1 forks source link

locate some more files into data partition #24

Open ptone opened 6 years ago

ptone commented 6 years ago

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

ptone commented 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)

ptone commented 6 years ago

updated the original issue to include #23 here

drewmoseley commented 6 years ago

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.

drewmoseley commented 6 years ago

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.

drewmoseley commented 6 years ago

OK. PR #27 now has the hosts file moved back into /etc.