Example #1
0
        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);
        }
Example #3
0
        protected override async Task ExecuteCore()
        {
            var deviceDisk = await DeploymentContext.Device.GetDeviceDisk();

            await flasher.Flash(deviceDisk, imagePath, progress);
        }
Example #4
0
        public async Task Execute(string imagePath, int diskNumber)
        {
            var disk = await fileSystem.GetDisk(diskNumber);

            await flasher.Flash(disk, imagePath, progress);
        }