fn image_repart_partitions( device: &Device, layout: Option<AbootDiskLayout>, ) -> Result<Vec<RepartPartition>>