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.
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
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.