mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
commit
8eacab2c4b
@ -135,7 +135,7 @@ function setDrives(drives: Dictionary<DrivelistDrive>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spwaning the child process without privileges to get the drives list
|
// Spawning the child process without privileges to get the drives list
|
||||||
// TODO: clean up this mess of exports
|
// TODO: clean up this mess of exports
|
||||||
export let requestMetadata: any;
|
export let requestMetadata: any;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ async function performWrite(
|
|||||||
console.log('Flash results', flashResults);
|
console.log('Flash results', flashResults);
|
||||||
|
|
||||||
// The flash wasn't cancelled and we didn't get a 'done' event
|
// The flash wasn't cancelled and we didn't get a 'done' event
|
||||||
// Catch unexepected situation
|
// Catch unexpected situation
|
||||||
if (
|
if (
|
||||||
!flashResults.cancelled &&
|
!flashResults.cancelled &&
|
||||||
!flashResults.skip &&
|
!flashResults.skip &&
|
||||||
@ -166,15 +166,15 @@ async function performWrite(
|
|||||||
cancelEmitter = (cancelStatus: string) => emit(cancelStatus);
|
cancelEmitter = (cancelStatus: string) => emit(cancelStatus);
|
||||||
|
|
||||||
// Now that we know we're connected we can instruct the child process to start the write
|
// Now that we know we're connected we can instruct the child process to start the write
|
||||||
const paramaters = {
|
const parameters = {
|
||||||
image,
|
image,
|
||||||
destinations: drives,
|
destinations: drives,
|
||||||
SourceType: image.SourceType,
|
SourceType: image.SourceType,
|
||||||
autoBlockmapping,
|
autoBlockmapping,
|
||||||
decompressFirst,
|
decompressFirst,
|
||||||
};
|
};
|
||||||
console.log('params', paramaters);
|
console.log('params', parameters);
|
||||||
emit('write', paramaters);
|
emit('write', parameters);
|
||||||
});
|
});
|
||||||
|
|
||||||
// The process continue in the event handler
|
// The process continue in the event handler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user