mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
feat: blacklist devices by device path (#2345)
We use `devicePath` instead of `device` to blacklist drives using the `ETCHER_BLACKLISTED_DRIVES` environment variable. Closes: https://github.com/resin-io/etcher/issues/2264 Change-Type: patch
This commit is contained in:
parent
fb1c381ab7
commit
e472fe0276
@ -224,7 +224,7 @@ app.run(($timeout) => {
|
||||
$timeout(() => {
|
||||
if (BLACKLISTED_DRIVES.length) {
|
||||
const allowedDrives = drives.filter((drive) => {
|
||||
return !BLACKLISTED_DRIVES.includes(drive.device)
|
||||
return !BLACKLISTED_DRIVES.includes(drive.devicePath)
|
||||
})
|
||||
availableDrives.setDrives(allowedDrives)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user