[systemd-devel] Disk Label Handling

Lennart Poettering lennart at poettering.net
Fri Jul 26 13:24:28 UTC 2019


On Fr, 26.07.19 13:18, Boyce, Kevin P [US] (AS) (Kevin.Boyce at ngc.com) wrote:

> Good morning list!
>
> How is udev supposed to handle the creation of /dev/disk/by-label/
> symlinks when there are more than one filesystems detected with the
> same label, such as DATA.
>
> In the past I remember udev linking these subsequently detected
> filesystems as DATA_1, DATA_2, etc.  Yet with systemd's udev
> implementation I do not observe that to be the case.  Is there some
> sort of setting to change or rule to modify to get that behavior?
> Or is that now a more complicated problem than it used to be?

one wins. you can tweak which with link_priority in OPTIONS. See udev(7).

udev keeps a list, and thus if you unplug a device the symlink is
likely updated to point to a different devices, until you remove all.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list