Closed lekkas closed 7 years ago
We've managed to discover the root of the issue: reconfix
uses resin-image-fs
to write to FAT partitions. That module doesn't mount the partitions, but provides FAT implementation on JavaScript that works just with a file descriptor on the drive.
The way that module works is that for each I/O operation it opens a file descriptor, and closes it when its done. At least in OS X, I can confirm that unmounting a drive, opening a file descriptor to it, and then closing the file descriptor causes the OS the mount the partitions (if they contain a mountable file-system of course).
We could either refactor resin-image-fs
to somehow allow the client application to control the file descriptor life (which could be tricky and take time to do right), or we could make use of something like denymount
to prevent the drive from being re-mounted on the configure command.
The module linked to above is OS X specific, but I believe this issue doesn't happen on other OSes.
Error Log
Node version:
v6.2.1
/resin-boot/system-connections/resin-sample
does not seem to be updated after the error.