Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Be able to black list some drives #3827

Open
TomasNielsen opened this issue Oct 26, 2022 · 3 comments
Open

Feature: Be able to black list some drives #3827

TomasNielsen opened this issue Oct 26, 2022 · 3 comments

Comments

@TomasNielsen
Copy link

TomasNielsen commented Oct 26, 2022

I'm always scared to flash my Dymo printer or photo SD card by mistake. Would it be possible to black list certain drives that should never be flashed?

@lurch
Copy link
Contributor

lurch commented Oct 26, 2022

Duplicate of #3147 but I've no idea if the feature described there still works? 🤷

@TomasNielsen
Copy link
Author

The file does not exist any more. I tried changing the preferences file in the same manner but my changes are removed at every start of Balena and blackList does not work.
It would be totally fine with a settings file. Pretty please?

@mcraa
Copy link
Contributor

mcraa commented Oct 28, 2022

If the config.json file does not exist, you can create one, pay attention to use LF line endings.
The feature is not removed. =>

const driveBlacklist = (await settings.get('driveBlacklist')) || [];

The examples from drivelist help what strings you may put there.
But it is a good idea to have the possibility somewhere on the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants