-
Notifications
You must be signed in to change notification settings - Fork 0
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
Connect wizard #23
Connect wizard #23
Conversation
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
…rking" This reverts commit b874224.
This reverts commit 5fe3169.
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
Signed-off-by: Max Winter <[email protected]>
…put; changed error handling to use anyhow instead of error messages
…ct and disconnect commands unnecessary. Device is automatically unmounted after the program exits
Great work, thank you guys! We will review asap. |
… to main class; implemented clippy suggestions
… lib/src/connect.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the connect + device functionality and to me it looks like it's working well! I put a few small comments that can be fixed later on.
Some ideas for identifying the correct device:
- We could try to think of some way to restrict the provided manually listed devices to USB storage devices. For example
udevadm info <device/path>
provides more information about each device. - Alternative or additional way to verify that the device is indeed the hydrophonitor device (and its correct partition)
udevadm info <device/path>
can be used to check whetherID_FS_LABEL=NIXOS_SD
is set
Changes approved, could developer please squash and merge the commits. Include necessary descriptions and commit messages in squashed commit (Github will give a template). |
Implemented connect wizard and clean command
Daniel and i thought about a different usage of the connect wizard:
The connect wizard no longer requires the usage of separate connect and disconnect commands.
Instead, the connect wizard is integrated in all other commands and automatically executed when no device is specified.
The connect wizard needs sudo rights because of the mounting.
We changed the mount location to /var/lib/hydrophonitor/device that the root user home directory doesn't get used.