Fix DNS search entry in /etc/resolv.conf and copy /etc/hostname and /etc/hosts into target
This pull request contains three different changes:
- Fix DNS search entry in /etc/resolv.conf (use
DOMAINSEARCH
instead ofDNSDOMAIN
for search if set) - Copy /etc/hostname and /etc/hosts into target
- shellcheck fixes for the files that I touched
See the individual commits for details.