mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
fix(adapters): Always ignore RAID attached devices
Change-Type: patch Changelog-Entry: Exclude RAID devices from drive selection list
This commit is contained in:
parent
a044d2fe86
commit
355373f24d
@ -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