Bug#1002850: udev fails to create a symlink for a SDHC card connected

Michael Biebl biebl at debian.org
Sun Jan 9 20:56:12 GMT 2022


On 09.01.22 20:07, peter at easthope.ca wrote:
> 
> I commented in the last line of /etc/udev/rules.d/10-local.rules .
> Otherwise the 10-local.rules is the same as attached to Message #102.
> 
> Then turned on debug logging and plugged the USB adapter with the
> SD card.  The udevInfo file is attached.
> 
> The KingstonUSB SYMLINK is created but the log has no mention of the
> /etc/udev/rules.d/10-local.rules file.  So the first rule in 10-local.rules
> has effect but the 2nd does not.

If you have a properly written udev rules file, like

# cat /etc/udev/rules.d/10-local.rules
KERNEL=="sd?1", ATTR{size}=="122538372", SYMLINK="foo"

you'll get
# udevadm control --log-priority=debug
# journalctl -f | grep etc
<attach device>
Jan 09 21:55:14 pluto systemd-udevd[168692]: sdc1: 
/etc/udev/rules.d/10-local.rules:1 LINK 'foo'
Jan 09 21:55:14 pluto systemd-udevd[168692]: sdc1: 
/etc/udev/rules.d/10-local.rules:1 LINK 'foo'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220109/f41fe659/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list