Only get rootfs when we need to calculate the image size Upstream-commit: 45ecdf9c8e468bb93a96665fe92e526dabf2ee43 Component: engine