README: suggest udevadm test /dev/sgX for debugging udev issues#102
Open
Grimler91 wants to merge 1 commit intolinux-automation:masterfrom
Open
README: suggest udevadm test /dev/sgX for debugging udev issues#102Grimler91 wants to merge 1 commit intolinux-automation:masterfrom
udevadm test /dev/sgX for debugging udev issues#102Grimler91 wants to merge 1 commit intolinux-automation:masterfrom
Conversation
I created the plugdev group, and expected the default rule to
work. I was not sure how to debug it, but learnt about the very useful
udevadm test command, with which it was clear as day that simply
creating a plugdev group would not work on my system:
```
$ udevadm test /dev/sg2
[ ... ]
Reading rules file: /etc/udev/rules.d/99-usbsdmux.rules
varlink: Setting state idle-client
/run/systemd/userdb/io.systemd.Multiplexer: Sending message: {"method":"io.systemd.UserDatabase.GetGroupRecord","parameters":{"groupName":"plugdev","gidMax":65533,"service":"io.systemd.Multiplexer"}}
/run/systemd/userdb/io.systemd.Multiplexer: Changing state idle-client → awaiting-reply
/run/systemd/userdb/io.systemd.Multiplexer: Received message: {"parameters":{"record":{"groupName":"plugdev","gid":1002,"members":["foobar"],"privileged":{"hashedPassword":["!"]},"status":{"7abeef6a2a394008bb35f4ea21607bca":{"service":"io.systemd.NameServiceSwitch"}}},"incomplete":true}}
/run/systemd/userdb/io.systemd.Multiplexer: Changing state awaiting-reply → processing-reply
/run/systemd/userdb/io.systemd.Multiplexer: Changing state processing-reply → idle-client
/etc/udev/rules.d/99-usbsdmux.rules:6 Failed to resolve group
'plugdev', ignoring: Not a system group
[ ... ]
```
I had to change so that it uses group "disk" instead. Add hint about
the udevadm test command to the README to help others facing similar
issues.
Signed-off-by: Henrik Grimler <henrik@grimler.se>
b6e08a4 to
5150c4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I created the plugdev group, and expected the default rule to work. I was not sure how to debug it, but learnt about the very useful udevadm test command, with which it was clear as day that simply creating a plugdev group would not work on my system:
I had to change so that it uses group "disk" instead. Add hint about the udevadm test command to the README to help others facing similar issues.