dev_install: dereference symlinks

If the files in /etc/make.profile are symlinks, dereference them.
Otherwise, when we try to update/modify those files, we get an
error because they're pointing to files in /.

This is needed now that dev-install installs into /usr/share and
then symlinks its files into /etc.

TEST=`dev_install` on board now works (no longer errors out on read-only rootfs)

Change-Id: Ic52e635c08cd5d33ada7c75377ed5bb2fada8c44
(cherry picked from commit 6e4c9e904fde23b45c5382adb0aeabb11c656e02)
Reviewed-by: Chris Sosa <>
Commit-Queue: Mike Frysinger <>
Tested-by: Mike Frysinger <>
1 file changed