Ferk / udev-media-automount

A simple automount mechanism using udev rules
Other
121 stars 59 forks source link

fix: UUID/LABEL check in /etc/fstab #23

Closed patrislav1 closed 3 months ago

patrislav1 commented 7 months ago

Make the UUID/LABEL check more specific. The existing code considers the device already managed by fstab if any non-commented line contains either UUID or LABEL somewhere.

E.g. if I have a partition with LABEL=foobar and a line in /etc/fstab such as

/dev/sda1 /mnt/foobar ext4 defaults 0 2

then media-automount script will abort and not manage the device.

This patch explicitly looks for e.g. LABEL=foobar defined in the fstab. Same for UUID.