In order to optimise the distro package installation
process the list of packages to install is prepared
for the host, then installed by passing the package
task the full list instead of using a loop.
Change-Id: I8bae6b5a39f78a2ee4fb02e31d91c1dd3eca7cb0