Refactor functions for building the developent schroot
Refactor functions for building the developent schroot

We want to avoid passing bash functions through the environment,
therefore refactor the functions to be run outside the schroot and
let them invoke commands in the schroot instead.

Signed-off-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>
Reviewed-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>

onponomarev/ganeti,bitemyapp/ganeti,dimara/ganeti,mbakke/ganeti,yiannist/ganeti,andir/ganeti,apyrgio/ganeti,leshchevds/ganeti,ganeti/ganeti,yiannist/ganeti,andir/ganeti,onponomarev/ganeti,grnet/snf-ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,bitemyapp/ganeti,leshchevds/ganeti,dimara/ganeti,mbakke/ganeti,mbakke/ganeti,ganeti/ganeti,yiannist/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,apyrgio/ganeti,grnet/snf-ganeti,leshchevds/ganeti