-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
stable-id: introduce qname variable to address block and usb devices #72
base: master
Are you sure you want to change the base?
Conversation
I think UUID is exactly on the limit:
|
It seems that you're right. I was sure that I've seen errors related to this limitation... Do you prefer full UUID or cropped version is ok? |
I think internally full UUID would be better. And then at GUI/CLI made it usable (like crop to a shorter version as long as it's unambiguous). |
How the device attach works here? You need to save in the qubesdb an actual device name too. |
I suppose, it's enough to have symlink to the actual device in the backend domain. Attach-device from libvirt should work with source /dev/${qname} or /dev/disk/by-uuid/${qname} as usual. |
I've found what was wrong. Links in by-uuid directory are formed by blkid in ID_FS_UUID_ENC variable, which length in theory can be up to 256 characters. This is not a problem while we are stick to uuidgen and generate our own UUIDs. |
QubesOS/qubes-issues/issues/2272
Rework of udev rules that allows to address block and usb devices by their attributes.
This solution can be extended to support existing block UUIDs, but it requires increased qubesdb path limit.