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

Add special check for ChromeOS's mountpoint #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haraldkubota
Copy link

Much simpler fix/workaround for ChromeOS.

The issue on ChromeOS is that external USB disks are mounted into /mnt/external/DISKNAME in Linux (Crostini), while elf2uf2-rs only checks /mnt/chromeos and /mnt/external but not /mnt/external/RPI-RP2

Instead of having a manual switch as I had before, it's actually much easier to simply check for the /mnt/external/RPI-RP2 directory to exist: if it does, use that directory for uploading the UF2 file.
While the code does not check for the INFO_UF2.TXT file, it uses the hard-coded volume name instead.

Thus my other pull request Make elf2uf2-rs work on Crostini

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

Successfully merging this pull request may close these issues.

1 participant