fn validate_repart_boot_layout( partitions: &[RepartPartition], layout: Option<AbootDiskLayout>, ) -> Result<()>