Remove code duplication & improve root detection/handling
Packer configuration to create images