예제 #1
0
        public async Task Execute(string windowsPath, string origin)
        {
            this.origin = origin;
            var injectedDrivers = await imageService.InjectDrivers(origin, windowsPath);

            var metadataPath = GetMetadataFilename();

            SaveMetadata(injectedDrivers, Path.Combine(AppPaths.Metadata, "Injected Drivers", metadataPath));
        }
예제 #2
0
        protected override async Task ExecuteCore()
        {
            var windowsPartition = await context.Device.GetWindowsPartition();

            await windowsPartition.EnsureWritable();

            var injectedDrivers = await imageService.InjectDrivers(origin, windowsPartition.Root);

            var metadataPath = GetMetadataFilename();

            SaveMetadata(injectedDrivers, Path.Combine(AppPaths.Metadata, "Injected Drivers", metadataPath));
        }
예제 #3
0
        public async Task Execute()
        {
            var windowsPartition = await device.GetWindowsVolume();

            await imageService.InjectDrivers(origin, windowsPartition);
        }
예제 #4
0
 private Task InjectDrivers(Volume windowsVolume)
 {
     Log.Information("Injecting Drivers...");
     return(windowsImageService.InjectDrivers(deploymentPaths.PreOobe, windowsVolume));
 }