Make the finalise_base function less Ubuntu-ish.

The finalise_base function was creating a broken link at /etc/resolv.conf
when building a non ubuntu image.

Change-Id: I974d43fd6db365dbff9c85195e3b72950f3409da
Merge "Make the finalise_base function less Ubuntu-ish."