first parts of automagic sd-card-image-building