private async Task PatchBoot() { Log.Verbose("Patching boot"); var mainOs = await phone.GetMainOsVolume(); await fileOperations.Copy("Core\\Boot\\bootaa64.efi", Path.Combine(mainOs.Root, PartitionName.EfiEsp, "EFI", "Boot\\")); }
private async Task PatchBoot() { Log.Verbose("Patching boot"); var bootVol = await disk.GetVolumeByPartitionName(PartitionName.System); Log.Debug("Boot volume path={Path}", bootVol.Root); await fileOperations.Copy("Core\\Boot\\bootaa64.efi", Path.Combine(bootVol.Root, "EFI", "Boot\\")); }
public async Task Execute() { var disk = await phone.GetDeviceDisk(); var espPart = await disk.GetBootEfiEspPartition(); if (espPart != null) { await espPart.SetGptType(PartitionType.Basic); } var bootVol = await phone.GetBootVolume(); var finalPath = Path.Combine(bootVol.RootDir.Name, destination); await fileSystemOperations.Copy(origin, finalPath); await bootVol.Partition.SetGptType(PartitionType.Esp); }
public Task Execute() { return(fileSystemOperations.Copy(origin, destination)); }
protected override Task ExecuteCore() { return(fileSystemOperations.Copy(origin, destination)); }
public async Task Execute(string origin, string destination) { OperationContext.CancellationToken.ThrowIfCancellationRequested(); await fileSystemOperations.Copy(origin, destination); }