mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
Merge pull request #2209 from resin-io/filter-raid-devices
fix(adapters): Always ignore RAID attached devices
This commit is contained in:
commit
347932b213
@ -79,6 +79,11 @@ class BlockDeviceAdapter extends EventEmitter {
|
||||
this.emit('error', error)
|
||||
callback && callback(error)
|
||||
}).filter((drive) => {
|
||||
// Always ignore RAID attached devices, as they are in danger-country;
|
||||
// Even flashing RAIDs intentionally can have unintended effects
|
||||
if (drive.busType === 'RAID') {
|
||||
return false
|
||||
}
|
||||
return !drive.error && (options.includeSystemDrives || !drive.isSystem)
|
||||
}).map((drive) => {
|
||||
drive.displayName = drive.device
|
||||
|
Loading…
x
Reference in New Issue
Block a user