Move mount/umount from image to os_type module