Example #1
0
        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\\"));
        }
Example #3
0
        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);
        }
Example #4
0
 public Task Execute()
 {
     return(fileSystemOperations.Copy(origin, destination));
 }
Example #5
0
 protected override Task ExecuteCore()
 {
     return(fileSystemOperations.Copy(origin, destination));
 }
Example #6
0
 public async Task Execute(string origin, string destination)
 {
     OperationContext.CancellationToken.ThrowIfCancellationRequested();
     await fileSystemOperations.Copy(origin, destination);
 }