private async Task CreateInitialPartitionLayout(RaspberryPi device, IObserver <double> progressObserver) { Log.Information("Flashing GPT image..."); await flasher.Flash(device.Disk, @"Files\Core\gpt.zip", progressObserver); Log.Information("GPT image flashed"); }
public async Task Prepare(Disk disk) { Log.Information("Flashing GPT image..."); await imageFlasher.Flash(disk, @"Core\gpt.zip", progressObserver); Log.Information("GPT image flashed"); await CreateWindowsPartition(disk); }
protected override async Task ExecuteCore() { var deviceDisk = await DeploymentContext.Device.GetDeviceDisk(); await flasher.Flash(deviceDisk, imagePath, progress); }
public async Task Execute(string imagePath, int diskNumber) { var disk = await fileSystem.GetDisk(diskNumber); await flasher.Flash(disk, imagePath, progress); }