proper resolv.conf parsing
Keep linebreaks and generalize code
Merge pull request #1613 from thijsterlouw/proper_resolvconf_parsing

Proper resolv.conf parsing
Just fixing gofmt issues in other people's code.
Copies content from image to volumne if non-empty. Fixes #1582.